diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2010-09-26 22:58:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-26 22:58:07 -0400 |
commit | 42099d7a3941d4aaf853caac92b3ae76149fc6e7 (patch) | |
tree | 0ee9de0c54902e462f46faf1aaf7c5457ca114aa /drivers/net/r6040.c | |
parent | a7855c78a24d6348e989bec616318e68c662e78b (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.c | 3 |
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 | ||
750 | static int r6040_open(struct net_device *dev) | 753 | static int r6040_open(struct net_device *dev) |