]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: r6040: store BIOS default MAC in perm_add
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 27 Sep 2010 02:58:07 +0000 (19:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 02:58:07 +0000 (19:58 -0700)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r6040.c

index 63db065508f4e6da9b03c94dd8f70549f5fda1d9..68a84198eb055dad75f8160c1d396a4b711409e7 100644 (file)
@@ -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)