]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: board_r: Drop initr_console_record wrapper
authorOvidiu Panait <ovidiu.panait@windriver.com>
Sat, 28 Nov 2020 08:43:08 +0000 (10:43 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:36:11 +0000 (14:36 -0500)
Drop initr_console_record wrapper and call console_record_init directly.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/board_r.c

index 29dd7d26d9072c7d380af851ce59c3a4d0ec126b..07c0ad363e926992d2b335e3bdbedbd06f04bb98 100644 (file)
@@ -282,15 +282,6 @@ static int initr_malloc(void)
        return 0;
 }
 
-static int initr_console_record(void)
-{
-#if defined(CONFIG_CONSOLE_RECORD)
-       return console_record_init();
-#else
-       return 0;
-#endif
-}
-
 #ifdef CONFIG_SYS_NONCACHED_MEMORY
 static int initr_noncached(void)
 {
@@ -713,7 +704,9 @@ static init_fnc_t init_sequence_r[] = {
        initr_malloc,
        log_init,
        initr_bootstage,        /* Needs malloc() but has its own timer */
-       initr_console_record,
+#if defined(CONFIG_CONSOLE_RECORD)
+       console_record_init,
+#endif
 #ifdef CONFIG_SYS_NONCACHED_MEMORY
        initr_noncached,
 #endif