aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOvidiu Panait2020-11-28 10:43:08 +0200
committerTom Rini2021-01-15 14:36:11 -0500
commit51c5a2c5e43e2c9c7ad6720c40aad8a55452f62c (patch)
tree820175a2ddf02a34b3ce8f01648fff81b4a428dd
parent19b18daa29b093d7d255190f75b2accac8f4057d (diff)
common: board_r: Drop initr_console_record wrapper
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>
-rw-r--r--common/board_r.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 29dd7d26d90..07c0ad363e9 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -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