aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/r6040.c
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2010-09-26 22:58:07 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-26 22:58:07 -0400
commit42099d7a3941d4aaf853caac92b3ae76149fc6e7 (patch)
tree0ee9de0c54902e462f46faf1aaf7c5457ca114aa /drivers/net/r6040.c
parenta7855c78a24d6348e989bec616318e68c662e78b (diff)
net: r6040: store BIOS default MAC in perm_add
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/r6040.c')
-rw-r--r--drivers/net/r6040.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 63db065508f4..68a84198eb05 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -745,6 +745,9 @@ static void r6040_mac_address(struct net_device *dev)
745 iowrite16(adrp[0], ioaddr + MID_0L); 745 iowrite16(adrp[0], ioaddr + MID_0L);
746 iowrite16(adrp[1], ioaddr + MID_0M); 746 iowrite16(adrp[1], ioaddr + MID_0M);
747 iowrite16(adrp[2], ioaddr + MID_0H); 747 iowrite16(adrp[2], ioaddr + MID_0H);
748
749 /* Store MAC Address in perm_addr */
750 memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);
748} 751}
749 752
750static int r6040_open(struct net_device *dev) 753static int r6040_open(struct net_device *dev)