diff options
Diffstat (limited to 'arch/nds32/lib/board.c')
| -rw-r--r-- | arch/nds32/lib/board.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c index 89900fea4..91395cabf 100644 --- a/arch/nds32/lib/board.c +++ b/arch/nds32/lib/board.c @@ -320,8 +320,8 @@ void board_init_r(gd_t *id, ulong dest_addr)  	/*  	 * We have to relocate the command table manually  	 */ -	fixup_cmdtable(&__u_boot_cmd_start, -		(ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start)); +	fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd), +			ll_entry_count(cmd_tbl_t, cmd));  #endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */  	serial_initialize(); @@ -396,7 +396,7 @@ void board_init_r(gd_t *id, ulong dest_addr)  	/* Initialize from environment */  	load_addr = getenv_ulong("loadaddr", 16, load_addr); -#ifdef BOARD_LATE_INIT +#ifdef CONFIG_BOARD_LATE_INIT  	board_late_init();  #endif |