summaryrefslogtreecommitdiff
path: root/board/cm-bf537u
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-04 14:55:15 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2015-05-20 11:07:27 -0500
commit76ec988b062ed880ab23d0e0d4e9e6c137b55cc3 (patch)
tree9f97bb7d62c2c8114f688c512e6169f105db1fba /board/cm-bf537u
parent92ac520821405e196c920d60921bdfa5ab6b878c (diff)
downloadu-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/cm-bf537u')
-rw-r--r--board/cm-bf537u/cm-bf537u.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/board/cm-bf537u/cm-bf537u.c b/board/cm-bf537u/cm-bf537u.c
index 69bffd76de..f365cdbeb7 100644
--- a/board/cm-bf537u/cm-bf537u.c
+++ b/board/cm-bf537u/cm-bf537u.c
@@ -23,18 +23,6 @@ int checkboard(void)
return 0;
}
-static void board_init_enetaddr(char *var)
-{
- uchar enetaddr[6];
-
- if (eth_getenv_enetaddr(var, enetaddr))
- return;
-
- printf("Warning: %s: generating 'random' MAC address\n", var);
- net_random_ethaddr(enetaddr);
- eth_setenv_enetaddr(var, enetaddr);
-}
-
#ifndef CONFIG_BFIN_MAC
# define bfin_EMAC_initialize(x) 1
#endif
@@ -50,9 +38,6 @@ int board_eth_init(bd_t *bis)
int misc_init_r(void)
{
- board_init_enetaddr("ethaddr");
- board_init_enetaddr("eth1addr");
-
gpio_cfi_flash_init();
return 0;