[PATCH 4/4] net: r6040: store BIOS default MAC in perm_add

From: Otavio Salvador
Date: Sun Sep 26 2010 - 22:36:04 EST


Cc: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Otavio Salvador <otavio@xxxxxxxxxxxxxxxx>
---
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 142c381..5780d08 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -740,6 +740,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)
--
1.7.2.3.313.gcd15

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/