ARM: s3c24xx: explicit dependency on <plat/gpio-cfg.h>
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 14 Jan 2014 14:05:22 +0000 (15:05 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 14 Jan 2014 14:24:54 +0000 (15:24 +0100)
Previously the custom GPIO header for the S3C24xx would in turn
bring in the custom pin control implementation from
<plat/gpio-cfg.h>. This is not good as it mixes up two
subsystems and makes the dependencies hard to track. Make
the dependency explicit by explicitly including the pin
control header where needed.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Cc: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: linux-samsung-soc@vger.kernel.org
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-s3c24xx/h1940-bluetooth.c
arch/arm/mach-s3c24xx/include/mach/gpio-samsung.h
arch/arm/mach-s3c24xx/mach-rx1950.c
arch/arm/mach-s3c24xx/pm-s3c2410.c
arch/arm/mach-s3c24xx/setup-ts.c
drivers/mmc/host/s3cmci.c

index ff3afc16317824a3cd9d71bce470a75138722b87..b4d14b86436727df47dce3bbe0d30db6c7e4e5ad 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/gpio.h>
 #include <linux/rfkill.h>
 
+#include <plat/gpio-cfg.h>
 #include <mach/hardware.h>
 #include <mach/regs-gpio.h>
 #include <mach/gpio-samsung.h>
index 79b3a0e44955a2148d6ad6abd5073b4093316d6d..528fcdc4f63e77c32eeadedd94e682f7c35abe84 100644 (file)
@@ -93,8 +93,6 @@ enum s3c_gpio_number {
 #define S3C2410_GPL(_nr)       (S3C2410_GPIO_L_START + (_nr))
 #define S3C2410_GPM(_nr)       (S3C2410_GPIO_M_START + (_nr))
 
-#include <plat/gpio-cfg.h>
-
 #ifdef CONFIG_CPU_S3C244X
 #define S3C_GPIO_END   (S3C2410_GPJ(0) + 32)
 #elif defined(CONFIG_CPU_S3C2443) || defined(CONFIG_CPU_S3C2416)
index 345d01aa35240c8c012512a1e31fe495748bc467..0a5456cda1bcd5dc39139f89a2b07c68dcb32372 100644 (file)
@@ -59,6 +59,7 @@
 #include <plat/pm.h>
 #include <plat/regs-serial.h>
 #include <plat/samsung-time.h>
+#include <plat/gpio-cfg.h>
 
 #include "common.h"
 #include "h1940.h"
index 509b20b4ab3bb38e906e75df07ae3fc19b20be2d..20e481d8a33a60ff10ab3a3962bf78d5b0241c0c 100644 (file)
@@ -35,6 +35,7 @@
 #include <mach/regs-gpio.h>
 #include <mach/gpio-samsung.h>
 
+#include <plat/gpio-cfg.h>
 #include <plat/cpu.h>
 #include <plat/pm.h>
 
index f61f02bdc52fa018a5a715d1848d86fc2e03e6b9..46466d20257e3fcaa23017d9b103aa71a04b21a5 100644 (file)
@@ -15,6 +15,7 @@
 
 struct platform_device; /* don't need the contents */
 
+#include <plat/gpio-cfg.h>
 #include <mach/hardware.h>
 #include <mach/gpio-samsung.h>
 
index e34d499cb316a8bb3cea2816be671c968fec81c3..f23782683a7c223dfa22db288cf308ef8c21ed1b 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/irq.h>
 #include <linux/io.h>
 
+#include <plat/gpio-cfg.h>
 #include <mach/dma.h>
 #include <mach/gpio-samsung.h>
 
This page took 0.052125 seconds and 5 git commands to generate.