[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1285554907-4495-4-git-send-email-otavio@ossystems.com.br>
Date: Sun, 26 Sep 2010 23:35:07 -0300
From: Otavio Salvador <otavio@...ystems.com.br>
To: linux-kernel@...r.kernel.org
Cc: Otavio Salvador <otavio@...ystems.com.br>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add
Cc: David S. Miller <davem@...emloft.net>
Signed-off-by: Otavio Salvador <otavio@...ystems.com.br>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists