mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 01:36:37 +03:00
powerpc: fix call to cpu_init_r
Commit6c171f7a18("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:6c171f7a18("common: board: make initcalls static") Signed-off-by: Michael Walle <mwalle@kernel.org> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user