common/board_f.c: Remove arch-specific checks for cpucheck
authorOvidiu Panait <ovpanait@gmail.com>
Wed, 22 Jan 2020 20:28:25 +0000 (22:28 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 30 Jan 2020 18:30:35 +0000 (13:30 -0500)
This removes the arch-specific checks for "checkcpu" function from the init
sequence. Make "checkcpu" generic and provide a weak nop stub instead.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
common/board_f.c

index 3f0132a6e339fd23e88857c0a83dae1ad8825d79..8fa26e3ca5488ab6aa22ee8f078195b89b400f7e 100644 (file)
@@ -862,6 +862,11 @@ __weak int arch_cpu_init_dm(void)
        return 0;
 }
 
+__weak int checkcpu(void)
+{
+       return 0;
+}
+
 static const init_fnc_t init_sequence_f[] = {
        setup_mon_len,
 #ifdef CONFIG_OF_CONTROL
@@ -904,9 +909,7 @@ static const init_fnc_t init_sequence_f[] = {
        console_init_f,         /* stage 1 init of console */
        display_options,        /* say that we are here */
        display_text_info,      /* show debugging info if required */
-#if defined(CONFIG_PPC) || defined(CONFIG_SH) || defined(CONFIG_X86)
        checkcpu,
-#endif
 #if defined(CONFIG_SYSRESET)
        print_resetinfo,
 #endif