aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-08-15 06:47:42 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-08-15 06:47:42 +0000
commite01649c7cce35cc4cf9f576a5a174a3ca069734a (patch)
tree09a219a9a5ff0e7bf1a7f90f081bbd14baea09eb /target
parent670b7360051c72c26d72960d6ca61327902eb77c (diff)
downloadupstream-e01649c7cce35cc4cf9f576a5a174a3ca069734a.tar.gz
upstream-e01649c7cce35cc4cf9f576a5a174a3ca069734a.tar.bz2
upstream-e01649c7cce35cc4cf9f576a5a174a3ca069734a.zip
generic: fix LED control on the RTL8366 switches
* patch from #7713 SVN-Revision: 22656
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366rb.c2
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366s.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
index 99d49c5b22..d442d2feb8 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
@@ -762,7 +762,7 @@ static int rtl8366rb_sw_set_port_led(struct switch_dev *dev,
data = val->value.i << (val->port_vlan * 4);
}
- return rtl8366_smi_rmwr(smi, RTL8366RB_LED_BLINKRATE_REG, mask, data);
+ return rtl8366_smi_rmwr(smi, reg, mask, data);
}
static int rtl8366rb_sw_get_port_led(struct switch_dev *dev,
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index abd2956def..ad631ef728 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@ -788,7 +788,7 @@ static int rtl8366s_sw_set_port_led(struct switch_dev *dev,
data = val->value.i << (val->port_vlan * 4);
}
- return rtl8366_smi_rmwr(smi, RTL8366S_LED_BLINKRATE_REG, mask, data);
+ return rtl8366_smi_rmwr(smi, reg, mask, data);
}
static int rtl8366s_sw_get_port_led(struct switch_dev *dev,