diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-04-18 19:09:49 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-12 15:19:46 -0400 |
commit | c42f56d96d1ec642496ee0fdf741dc13fbbec2e2 (patch) | |
tree | b1aaa48fc2356b36d981d2732b0b25400a5a30e9 /board/bf518f-ezbrd | |
parent | da384a9d7628c77140023e7c095f79ecfe5a4e2d (diff) | |
download | u-boot-c42f56d96d1ec642496ee0fdf741dc13fbbec2e2.tar.gz u-boot-c42f56d96d1ec642496ee0fdf741dc13fbbec2e2.tar.xz u-boot-c42f56d96d1ec642496ee0fdf741dc13fbbec2e2.zip |
blackfin: replace bfin_gen_rand_mac() with eth_random_addr()
bfin_gen_rand_mac() uses __DATE__ as the seed for random ethernet
address. This makes the build non-deterministic.
In the first place, it should not be implemented as a Bfin-specific
function. Use eth_random_addr() instead.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'board/bf518f-ezbrd')
-rw-r--r-- | board/bf518f-ezbrd/bf518f-ezbrd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/bf518f-ezbrd/bf518f-ezbrd.c b/board/bf518f-ezbrd/bf518f-ezbrd.c index 09a2353e7d..3a94a572eb 100644 --- a/board/bf518f-ezbrd/bf518f-ezbrd.c +++ b/board/bf518f-ezbrd/bf518f-ezbrd.c @@ -13,7 +13,6 @@ #include <netdev.h> #include <spi.h> #include <asm/blackfin.h> -#include <asm/net.h> #include <asm/portmux.h> #include <asm/mach-common/bits/otp.h> #include <asm/sdh.h> @@ -48,7 +47,7 @@ static void board_init_enetaddr(uchar *mac_addr) if (!valid_mac) { puts("Warning: Generating 'random' MAC address\n"); - bfin_gen_rand_mac(mac_addr); + eth_random_addr(mac_addr); } eth_setenv_enetaddr("ethaddr", mac_addr); |