diff options
author | Masahiro Yamada | 2014-04-18 19:09:49 +0900 |
---|---|---|
committer | Tom Rini | 2014-05-12 15:19:46 -0400 |
commit | c42f56d96d1ec642496ee0fdf741dc13fbbec2e2 (patch) | |
tree | b1aaa48fc2356b36d981d2732b0b25400a5a30e9 /board/tcm-bf537 | |
parent | da384a9d7628c77140023e7c095f79ecfe5a4e2d (diff) |
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/tcm-bf537')
-rw-r--r-- | board/tcm-bf537/tcm-bf537.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/tcm-bf537/tcm-bf537.c b/board/tcm-bf537/tcm-bf537.c index 38aaae6870b..a4f0f7121b1 100644 --- a/board/tcm-bf537/tcm-bf537.c +++ b/board/tcm-bf537/tcm-bf537.c @@ -12,7 +12,6 @@ #include <net.h> #include <netdev.h> #include <asm/blackfin.h> -#include <asm/net.h> #include "../cm-bf537e/gpio_cfi_flash.h" DECLARE_GLOBAL_DATA_PTR; @@ -32,7 +31,7 @@ static void board_init_enetaddr(char *var) return; printf("Warning: %s: generating 'random' MAC address\n", var); - bfin_gen_rand_mac(enetaddr); + eth_random_addr(enetaddr); eth_setenv_enetaddr(var, enetaddr); } |