diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2022-01-01 19:13:28 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-18 08:31:02 -0500 |
commit | 1b212bb9f4bf55f58ed230a444e51204f1fa8b02 (patch) | |
tree | d3bdb1340154c1ca56769db037eb58704c54a028 /common | |
parent | 78fc0395c01640df0fa9b8be736bf855a0416b56 (diff) | |
download | u-boot-1b212bb9f4bf55f58ed230a444e51204f1fa8b02.zip u-boot-1b212bb9f4bf55f58ed230a444e51204f1fa8b02.tar.gz u-boot-1b212bb9f4bf55f58ed230a444e51204f1fa8b02.tar.bz2 |
common: board_r: drop initr_addr_map wrapper
Add a return value to init_addr_map and use it directly in the
post-relocation init sequence, rather than using a wrapper stub.
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_r.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/common/board_r.c b/common/board_r.c index f12e245..de6a20b 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -186,15 +186,6 @@ __weak int arch_initr_trap(void) return 0; } -#ifdef CONFIG_ADDR_MAP -static int initr_addr_map(void) -{ - init_addr_map(); - - return 0; -} -#endif - #if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500) static int initr_unlock_ram_in_cache(void) { @@ -646,7 +637,7 @@ static init_fnc_t init_sequence_r[] = { initr_dm, #endif #ifdef CONFIG_ADDR_MAP - initr_addr_map, + init_addr_map, #endif #if defined(CONFIG_ARM) || defined(CONFIG_NDS32) || defined(CONFIG_RISCV) || \ defined(CONFIG_SANDBOX) |