From 019fd6d45b611193610e3366392c53a817c3cee2 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 30 Aug 2011 05:51:00 +0000 Subject: Correct call to eth_write_hwaddr() This fixes "Warning: failed to set MAC address" on platforms which rely on an 'ethaddr' environment variable to set the MAC address. This bug was introduced by this commit: 7616e785 Add Ethernet hardware MAC address framework to usbnet Signed-off-by: Simon Glass Tested-by: Kumar Gala Tested-by: Michal Simek Tested-by: Heiko Schocher --- net/eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/eth.c b/net/eth.c index c9b7e85e3..dbd1e2dba 100644 --- a/net/eth.c +++ b/net/eth.c @@ -304,7 +304,7 @@ int eth_initialize(bd_t *bis) if (strchr(dev->name, ' ')) puts("\nWarning: eth device name has a space!\n"); - if (eth_write_hwaddr(dev, NULL, eth_number)) + if (eth_write_hwaddr(dev, "eth", eth_number)) puts("Warning: failed to set MAC address\n"); eth_number++; -- cgit v1.2.3