aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/greth.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-06 02:23:37 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-06 02:23:37 -0400
commite12fe68ce34d60c04bb1ddb1d3cc5c3022388fe4 (patch)
tree83c0e192ccaa4752c80b6131a7d0aa8272b5d0d0 /drivers/net/greth.c
parent7329f0d58de01878d9ce4f0be7a76e136f223eef (diff)
parent712ae51afd55b20c04c5383d02ba5d10233313b1 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'drivers/net/greth.c')
-rw-r--r--drivers/net/greth.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/greth.c b/drivers/net/greth.c
index 82c3767ec5f8..16ce45c11934 100644
--- a/drivers/net/greth.c
+++ b/drivers/net/greth.c
@@ -1017,11 +1017,10 @@ static int greth_set_mac_add(struct net_device *dev, void *p)
1017 return -EINVAL; 1017 return -EINVAL;
1018 1018
1019 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); 1019 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
1020 GRETH_REGSAVE(regs->esa_msb, dev->dev_addr[0] << 8 | dev->dev_addr[1]);
1021 GRETH_REGSAVE(regs->esa_lsb, dev->dev_addr[2] << 24 | dev->dev_addr[3] << 16 |
1022 dev->dev_addr[4] << 8 | dev->dev_addr[5]);
1020 1023
1021 GRETH_REGSAVE(regs->esa_msb, addr->sa_data[0] << 8 | addr->sa_data[1]);
1022 GRETH_REGSAVE(regs->esa_lsb,
1023 addr->sa_data[2] << 24 | addr->
1024 sa_data[3] << 16 | addr->sa_data[4] << 8 | addr->sa_data[5]);
1025 return 0; 1024 return 0;
1026} 1025}
1027 1026