]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common/board_r: Drop initr_bedbug wrapper
authorOvidiu Panait <ovpanait@gmail.com>
Mon, 20 Apr 2020 07:31:46 +0000 (10:31 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 1 May 2020 15:34:01 +0000 (11:34 -0400)
Drop initr_bedbug wrapper and call bedbug_init directly during the init
sequence.

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

index bdb0389e31a19d0251000e3981f232df602aa100..d9015cd05794ef60f480731259b081ed0a9f1069 100644 (file)
@@ -637,15 +637,6 @@ int initr_mem(void)
 }
 #endif
 
-#ifdef CONFIG_CMD_BEDBUG
-static int initr_bedbug(void)
-{
-       bedbug_init();
-
-       return 0;
-}
-#endif
-
 static int run_main_loop(void)
 {
 #ifdef CONFIG_SANDBOX
@@ -848,7 +839,7 @@ static init_fnc_t init_sequence_r[] = {
 #endif
 #ifdef CONFIG_CMD_BEDBUG
        INIT_FUNC_WATCHDOG_RESET
-       initr_bedbug,
+       bedbug_init,
 #endif
 #if defined(CONFIG_PRAM)
        initr_mem,