diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-04 14:55:15 -0500 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-20 11:07:27 -0500 |
commit | 76ec988b062ed880ab23d0e0d4e9e6c137b55cc3 (patch) | |
tree | 9f97bb7d62c2c8114f688c512e6169f105db1fba /board/buffalo | |
parent | 92ac520821405e196c920d60921bdfa5ab6b878c (diff) | |
download | u-boot-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.gz u-boot-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.bz2 u-boot-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.zip |
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')
-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 487875c23a..45dd788805 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"); } |