]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
powerpc: fix call to cpu_init_r
authorMichael Walle <mwalle@kernel.org>
Wed, 6 May 2026 12:34:10 +0000 (14:34 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 15 May 2026 11:28:29 +0000 (19:28 +0800)
Commit 6c171f7a184c ("common: board: make initcalls static") broke the
call to cpu_init_r. That is because PPC is already defined to 1, see:

  powerpc-linux-gnu-gcc -dM -E - < /dev/null

This will conflict with the CONFIG_IS_ENABLED(PPC). Change it to
IS_ENABLED(CONFIG_PPC).

Fixes: 6c171f7a184c ("common: board: make initcalls static")
Signed-off-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
common/board_r.c

index ae686d18ae8ea5d2430f129ab27a63f065d3f22b..a397e20959de02d3afb96c1e2214a1a219f0b0db 100644 (file)
@@ -687,7 +687,7 @@ static void initcall_run_r(void)
        INITCALL(initr_flash);
 #endif
        WATCHDOG_RESET();
-#if CONFIG_IS_ENABLED(PPC) || CONFIG_IS_ENABLED(M68K) || CONFIG_IS_ENABLED(X86)
+#if IS_ENABLED(CONFIG_PPC) || CONFIG_IS_ENABLED(M68K) || CONFIG_IS_ENABLED(X86)
        /* initialize higher level parts of CPU like time base and timers */
        INITCALL(cpu_init_r);
 #endif