diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-11-28 10:43:16 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-15 14:36:12 -0500 |
commit | ce41e735231f350722221b10bb81408f88235d1d (patch) | |
tree | 10212ab9eacb8cd42bc97e0213de412999d2065c /common | |
parent | 0154858039fd6d184528ed6a294153bd7f4cd3e0 (diff) | |
download | u-boot-ce41e735231f350722221b10bb81408f88235d1d.zip u-boot-ce41e735231f350722221b10bb81408f88235d1d.tar.gz u-boot-ce41e735231f350722221b10bb81408f88235d1d.tar.bz2 |
common: board_r: Drop initr_api wrapper
Add a return value to api_init and use it directly in the
post-relocation init sequence, rather than using a wrapper stub.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
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 32ad40d..500457b 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -490,15 +490,6 @@ static int initr_malloc_bootparams(void) } #endif -#if defined(CONFIG_API) -static int initr_api(void) -{ - /* Initialize API */ - api_init(); - return 0; -} -#endif - #ifdef CONFIG_CMD_NET static int initr_ethaddr(void) { @@ -753,7 +744,7 @@ static init_fnc_t init_sequence_r[] = { stdio_add_devices, jumptable_init, #ifdef CONFIG_API - initr_api, + api_init, #endif console_init_r, /* fully init console as a device */ #ifdef CONFIG_DISPLAY_BOARDINFO_LATE |