ARM: S5P[v210|c100|64x0]: Fix build error
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 15 Jan 2014 09:01:29 +0000 (14:31 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Jan 2014 12:48:06 +0000 (13:48 +0100)
gpio-samsung.h header file introduced by commit 93177be0910c
("ARM: S3C[24|64]xx: move includes back under <mach/> scope")
is required only by S3C[24|64]xx machines. Include them conditionally
to avoid the following build errors for other machine configurations.
drivers/gpio/gpio-samsung.c:35:31: fatal error: mach/gpio-samsung.h: No such file or directory
arch/arm/plat-samsung/pm-gpio.c:22:31: fatal error: mach/gpio-samsung.h: No such file or directory

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/plat-samsung/pm-gpio.c
drivers/gpio/gpio-samsung.c

index a9f7a37c4173a0c35c1df96178f362855ff0fc97..dd4c15d0d68f821112a6f8d4a69e06668e61246d 100644 (file)
 #include <linux/io.h>
 #include <linux/gpio.h>
 
+#if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX)
 #include <mach/gpio-samsung.h>
+#endif
+
 #include <plat/gpio-core.h>
 #include <plat/pm.h>
 
index 9741cce11df5f5923e8b4928ccae3a3af1db3119..a85e00bf9834c01ac6cb0ebfe6883176f10c06cb 100644 (file)
 
 #include <mach/map.h>
 #include <mach/regs-gpio.h>
+
+#if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX)
 #include <mach/gpio-samsung.h>
+#endif
 
 #include <plat/cpu.h>
 #include <plat/gpio-core.h>