]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
ARM: shmobile: fix platsmp.c build when ARCH_SH73A0=n
authorMagnus Damm <damm@opensource.se>
Fri, 6 Jul 2012 08:20:05 +0000 (17:20 +0900)
committerArnd Bergmann <arnd@arndb.de>
Fri, 6 Jul 2012 20:00:20 +0000 (22:00 +0200)
commit873e9f7a3b8a5ca36085437da364654bfe3e5974
tree0571bbcbcb548756908858be1de162b0721be3ff
parent78ee225fc1706821370f1147de4ce323f912f3a7
ARM: shmobile: fix platsmp.c build when ARCH_SH73A0=n

Fix build error in the case of SMP=y but ARCH_SH73A0=n
introduced by:

9601e87 ARM: shmobile: fix smp build

The use of of_machine_is_compatible() will link in the
the SoC-specific symbols:
"sh73a0_get_core_count", "sh73a0_smp_prepare_cpus",
"sh73a0_secondary_init" and "sh73a0_boot_secondary".

This patch adds an ugly #ifdef wrapper as a stop-gap
solution.

Signed-off-by: Magnus Damm <damm@opensource.se>
Tested-by: Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-shmobile/platsmp.c