projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7855c7
)
net: r6040: store BIOS default MAC in perm_add
author
Otavio Salvador
<otavio@ossystems.com.br>
Mon, 27 Sep 2010 02:58:07 +0000
(19:58 -0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/r6040.c
b/drivers/net/r6040.c
index 63db065508f4e6da9b03c94dd8f70549f5fda1d9..68a84198eb055dad75f8160c1d396a4b711409e7 100644
(file)
--- 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)