generic: fix LED control on the RTL8366 switches
authorGabor Juhos <juhosg@openwrt.org>
Sun, 15 Aug 2010 06:47:42 +0000 (06:47 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 15 Aug 2010 06:47:42 +0000 (06:47 +0000)
 * patch from #7713

SVN-Revision: 22656

target/linux/generic/files/drivers/net/phy/rtl8366rb.c
target/linux/generic/files/drivers/net/phy/rtl8366s.c

index 99d49c5b22062ba5ea56464f93c4dde3c53b83c3..d442d2feb8d4147334661849ba079158ecf42152 100644 (file)
@@ -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,
index abd2956deff2854d392cd272db915871d26a95ac..ad631ef728b084c40cf356070cac26bd7928feac 100644 (file)
@@ -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,