@@ -67,22 +67,12 @@ static inline void serial_early_puts(const char *s)
static int global_board_data_init(void)
{
-#ifndef CONFIG_SYS_GBL_DATA_ADDR
-# define CONFIG_SYS_GBL_DATA_ADDR 0
-#endif
#ifndef CONFIG_SYS_BD_INFO_ADDR
# define CONFIG_SYS_BD_INFO_ADDR 0
#endif
bd_t *bd;
- if (CONFIG_SYS_GBL_DATA_ADDR) {
- gd = (gd_t *)(CONFIG_SYS_GBL_DATA_ADDR);
- memset((void *)gd, 0, GENERATED_GBL_DATA_SIZE);
- } else {
- static gd_t _bfin_gd;
- gd = &_bfin_gd;
- }
if (CONFIG_SYS_BD_INFO_ADDR) {
bd = (bd_t *)(CONFIG_SYS_BD_INFO_ADDR);
memset(bd, 0, GENERATED_BD_INFO_SIZE);
We have already set up gd in the standard board_init_f_init_reserve() function. Drop the duplicate setup. Signed-off-by: Simon Glass <sjg@chromium.org> --- arch/blackfin/cpu/cpu.c | 10 ---------- 1 file changed, 10 deletions(-)