diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2010-09-26 19:58:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-26 19:58:07 -0700 |
commit | 42099d7a3941d4aaf853caac92b3ae76149fc6e7 (patch) | |
tree | 0ee9de0c54902e462f46faf1aaf7c5457ca114aa /drivers/net/r6040.c | |
parent | a7855c78a24d6348e989bec616318e68c662e78b (diff) | |
download | linux-42099d7a3941d4aaf853caac92b3ae76149fc6e7.tar.gz linux-42099d7a3941d4aaf853caac92b3ae76149fc6e7.tar.bz2 linux-42099d7a3941d4aaf853caac92b3ae76149fc6e7.zip |
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) iowrite16(adrp[0], ioaddr + MID_0L); iowrite16(adrp[1], ioaddr + MID_0M); iowrite16(adrp[2], ioaddr + MID_0H); + + /* Store MAC Address in perm_addr */ + memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN); } static int r6040_open(struct net_device *dev) |