ARM: s3c64xx: prepare initcalls for multiplatform
authorArnd Bergmann <arnd@arndb.de>
Fri, 27 Feb 2015 19:31:51 +0000 (20:31 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 1 Dec 2015 20:50:24 +0000 (21:50 +0100)
commita0e157afd0c3ecb2e953eb41da04da2bf0e3d6c3
tree7e6b92d70621cfd3771753012a0905da0c1051d7
parent0f20e456bd0542b7bf8cae8f553142405a8ab430
ARM: s3c64xx: prepare initcalls for multiplatform

In a multiplatform kernel, each initcall is run regardless
of the platform it is meant for, so it must not attempt to
access SoC-specific registers.

This adds 'if (soc_is_s3c64xx)' to all initcalls that are
specific to the s3c64xx platform, to prevent them from breaking
other platforms once we can build them into a combined kernel.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-s3c64xx/common.c
arch/arm/mach-s3c64xx/cpuidle.c
arch/arm/mach-s3c64xx/irq-pm.c
arch/arm/mach-s3c64xx/mach-crag6410-module.c
arch/arm/mach-s3c64xx/pl080.c
arch/arm/mach-s3c64xx/pm.c
arch/arm/mach-s3c64xx/s3c6400.c
arch/arm/mach-s3c64xx/s3c6410.c
arch/arm/plat-samsung/gpio-samsung.c
arch/arm/plat-samsung/init.c