[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1260131563.11126.124.camel@Joe-Laptop.home>
Date: Sun, 06 Dec 2009 12:32:43 -0800
From: Joe Perches <joe@...ches.com>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 1/2] drivers/net/au1000_eth.c: Remove misuse of
DECLARE_MAC_BUF
And use a directly declared buffer.
It's used in a call to prom_get_ethernet_addr to
get a 6 byte address, not a formatted output string.
Signed-off-by: Joe Perches <joe@...ches.com>
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c
index 1acf2c1..af271fa 100644
--- a/drivers/net/au1000_eth.c
+++ b/drivers/net/au1000_eth.c
@@ -1006,7 +1006,7 @@ static int __devinit au1000_probe(struct platform_device *pdev)
db_dest_t *pDB, *pDBfree;
int irq, i, err = 0;
struct resource *base, *macen;
- DECLARE_MAC_BUF(ethaddr);
+ char ethaddr[ETH_ALEN];
base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!base) {
--
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