diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-04 19:55:15 (GMT) |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-20 16:07:27 (GMT) |
commit | 76ec988b062ed880ab23d0e0d4e9e6c137b55cc3 (patch) | |
tree | 9f97bb7d62c2c8114f688c512e6169f105db1fba /board/buffalo/lsxl | |
parent | 92ac520821405e196c920d60921bdfa5ab6b878c (diff) | |
download | u-boot-fsl-qoriq-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.xz |
net: Remove all calls to net_random_ethaddr()
Remove the calls to net_random_ethaddr() that some boards and some
drivers are calling. This is now implemented inside of net/eth.c
Enable the feature for all boards that previously enabled it.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-By: Michael Walle <michael@walle.cc> (for the lsxl board part)
Series-changes: 2
-Fixed bfin build errors
Diffstat (limited to 'board/buffalo/lsxl')
-rw-r--r-- | board/buffalo/lsxl/lsxl.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c index 487875c..45dd788 100644 --- a/board/buffalo/lsxl/lsxl.c +++ b/board/buffalo/lsxl/lsxl.c @@ -230,16 +230,6 @@ static void rescue_mode(void) uchar enetaddr[6]; printf("Entering rescue mode..\n"); -#ifdef CONFIG_RANDOM_MACADDR - if (!eth_getenv_enetaddr("ethaddr", enetaddr)) { - net_random_ethaddr(enetaddr); - if (eth_setenv_enetaddr("ethaddr", enetaddr)) { - printf("Failed to set ethernet address\n"); - set_led(LED_ALARM_BLINKING); - return; - } - } -#endif setenv("bootsource", "rescue"); } |