]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common/board_r: Remove initr_serial wrapper
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 24 Jul 2020 11:12:23 +0000 (14:12 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 6 Aug 2020 18:27:27 +0000 (14:27 -0400)
Remove the initr_serial->serial_initialize indirection and call
serial_initialize directly.

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

index d9307f02e06cbbce9adc687484d67a48ec645817..3b2c6e092b5e33e3ffbe8c9d3dc21dc9db0b48a2 100644 (file)
@@ -187,12 +187,6 @@ static int initr_reloc_global_data(void)
        return 0;
 }
 
-static int initr_serial(void)
-{
-       serial_initialize();
-       return 0;
-}
-
 #if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_MIPS)
 static int initr_trap(void)
 {
@@ -714,7 +708,7 @@ static init_fnc_t init_sequence_r[] = {
 #endif
        initr_dm_devices,
        stdio_init_tables,
-       initr_serial,
+       serial_initialize,
        initr_announce,
 #if CONFIG_IS_ENABLED(WDT)
        initr_watchdog,