aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-10-20 05:51:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-10-20 05:51:10 +0000
commite7e439aa92c7247a80e49727f03cc5af4eb4e040 (patch)
tree07336c02e43658e1e4b39967c53253bdb182195d /target/linux/adm5120/files
parentc90ceb05b4c23faffc4d3506aea11b99402c3e00 (diff)
downloadupstream-e7e439aa92c7247a80e49727f03cc5af4eb4e040.tar.gz
upstream-e7e439aa92c7247a80e49727f03cc5af4eb4e040.tar.bz2
upstream-e7e439aa92c7247a80e49727f03cc5af4eb4e040.zip
[adm5120] fix typos in the switch driver, thanks to Bernhard Held (closes: #2573)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9361 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files')
-rw-r--r--target/linux/adm5120/files/drivers/net/adm5120sw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/drivers/net/adm5120sw.c b/target/linux/adm5120/files/drivers/net/adm5120sw.c
index 8775426990..f876844060 100644
--- a/target/linux/adm5120/files/drivers/net/adm5120sw.c
+++ b/target/linux/adm5120/files/drivers/net/adm5120sw.c
@@ -709,7 +709,7 @@ static void adm5120_write_mac(struct net_device *dev)
u32 t;
t = mac[2] | (mac[3] << MAC_WT1_MAC3_SHIFT) |
- (mac[4] << MAC_WT1_MAC4_SHIFT) | (mac[5] << MAC_WT1_MAC4_SHIFT);
+ (mac[4] << MAC_WT1_MAC4_SHIFT) | (mac[5] << MAC_WT1_MAC5_SHIFT);
sw_write_reg(SWITCH_REG_MAC_WT1, t);
t = (mac[0] << MAC_WT0_MAC0_SHIFT) | (mac[1] << MAC_WT0_MAC1_SHIFT) |
@@ -746,7 +746,7 @@ static void adm5120_switch_set_vlan_mac(unsigned int vlan, unsigned char *mac)
t = mac[2] | (mac[3] << MAC_WT1_MAC3_SHIFT)
| (mac[4] << MAC_WT1_MAC4_SHIFT)
- | (mac[5] << MAC_WT1_MAC4_SHIFT);
+ | (mac[5] << MAC_WT1_MAC5_SHIFT);
sw_write_reg(SWITCH_REG_MAC_WT1, t);
t = (mac[0] << MAC_WT0_MAC0_SHIFT) | (mac[1] << MAC_WT0_MAC1_SHIFT) |