ARM: shmobile: don't call platform_can_secondary_boot on UP
authorArnd Bergmann <arnd@arndb.de>
Thu, 30 Jun 2016 12:25:19 +0000 (14:25 +0200)
committerOlof Johansson <olof@lixom.net>
Tue, 2 Aug 2016 19:34:49 +0000 (12:34 -0700)
commit869ec056fa8450184423c8076e0a342db127795c
tree3443694c0b2d14e931844392a74ef7c1a7f65886
parent4d2bf027e8ca499a52224e508f52a59d3858094a
ARM: shmobile: don't call platform_can_secondary_boot on UP

For rcar-gen2, we build the SMP files even for UP configurations,
and that just broke:

arch/arm/mach-shmobile/built-in.o: In function `shmobile_smp_init_fallback_ops':
pm-rcar-gen2.c:(.init.text+0x40c): undefined reference to `platform_can_secondary_boot'

This adds an compile-time check before the call to platform_can_secondary_boot,
turning the function into an empty stub for UP configurations.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c21af444eace ("ARM: shmobile: smp: Add function to prioritize DT SMP")
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-shmobile/platsmp.c