diff options
author | Simon Glass <sjg@chromium.org> | 2011-08-30 05:51:00 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-09-05 16:06:06 +0200 |
commit | 019fd6d45b611193610e3366392c53a817c3cee2 (patch) | |
tree | 0031438c87550562680ad1bf6b0295369eb4c249 /net/eth.c | |
parent | ad8e3bd65766f670007bc5ae7c19b64e69e3dceb (diff) | |
download | u-boot-imx-019fd6d45b611193610e3366392c53a817c3cee2.zip u-boot-imx-019fd6d45b611193610e3366392c53a817c3cee2.tar.gz u-boot-imx-019fd6d45b611193610e3366392c53a817c3cee2.tar.bz2 |
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 <sjg@chromium.org>
Tested-by: Kumar Gala <galak@kernel.crashing.org>
Tested-by: Michal Simek <monstr@monstr.eu>
Tested-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'net/eth.c')
-rw-r--r-- | net/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |