summaryrefslogtreecommitdiffstats
path: root/board/cm-bf527/cm-bf527.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-04-18 19:09:49 +0900
committerTom Rini <trini@ti.com>2014-05-12 15:19:46 -0400
commitc42f56d96d1ec642496ee0fdf741dc13fbbec2e2 (patch)
treeb1aaa48fc2356b36d981d2732b0b25400a5a30e9 /board/cm-bf527/cm-bf527.c
parentda384a9d7628c77140023e7c095f79ecfe5a4e2d (diff)
downloadtalos-obmc-uboot-c42f56d96d1ec642496ee0fdf741dc13fbbec2e2.tar.gz
talos-obmc-uboot-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/cm-bf527/cm-bf527.c')
-rw-r--r--board/cm-bf527/cm-bf527.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/cm-bf527/cm-bf527.c b/board/cm-bf527/cm-bf527.c
index a5f70a4f83..1533eb9c7a 100644
--- a/board/cm-bf527/cm-bf527.c
+++ b/board/cm-bf527/cm-bf527.c
@@ -11,7 +11,6 @@
#include <net.h>
#include <netdev.h>
#include <asm/blackfin.h>
-#include <asm/net.h>
#include <asm/mach-common/bits/otp.h>
#include "../cm-bf537e/gpio_cfi_flash.h"
@@ -46,7 +45,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);
OpenPOWER on IntegriCloud