From 121e36dacdfa0ef68414effea4d758e8fc2f3b60 Mon Sep 17 00:00:00 2001 From: Thomas Chou Date: Fri, 9 Oct 2015 09:43:52 +0800 Subject: [PATCH] nios2: convert do_reset to use dm cpu data Convert do_reset to use dm cpu data. Signed-off-by: Thomas Chou Reviewed-by: Simon Glass --- arch/nios2/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c index d7ff290fd7..0e71b43842 100644 --- a/arch/nios2/cpu/cpu.c +++ b/arch/nios2/cpu/cpu.c @@ -25,7 +25,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { disable_interrupts(); /* indirect call to go beyond 256MB limitation of toolchain */ - nios2_callr(CONFIG_SYS_RESET_ADDR); + nios2_callr(gd->arch.reset_addr); return 0; } -- 2.39.5