提交 019fd6d4 编写于 作者: S Simon Glass 提交者: Wolfgang Denk

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: NSimon Glass <sjg@chromium.org>
Tested-by: NKumar Gala <galak@kernel.crashing.org>
Tested-by: NMichal Simek <monstr@monstr.eu>
Tested-by: NHeiko Schocher <hs@denx.de>
上级 ad8e3bd6
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册