summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-11-28 10:43:16 +0200
committerTom Rini <trini@konsulko.com>2021-01-15 14:36:12 -0500
commitce41e735231f350722221b10bb81408f88235d1d (patch)
tree10212ab9eacb8cd42bc97e0213de412999d2065c /common
parent0154858039fd6d184528ed6a294153bd7f4cd3e0 (diff)
downloadu-boot-ce41e735231f350722221b10bb81408f88235d1d.tar.gz
u-boot-ce41e735231f350722221b10bb81408f88235d1d.tar.xz
u-boot-ce41e735231f350722221b10bb81408f88235d1d.zip
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.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 32ad40d372..500457b080 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