diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-08-28 20:06:41 +0200 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-09-14 16:21:59 +0200 |
commit | 01464226ac6089bd6a33f9899cc792c2355ebf39 (patch) | |
tree | 8f241525ea0c3e39d9188299b091b39c04bcb295 /arch/arm/include/asm/gpio.h | |
parent | ARM: orion: move custom gpio functions to orion-gpio.h (diff) | |
download | linux-01464226ac6089bd6a33f9899cc792c2355ebf39.tar.xz linux-01464226ac6089bd6a33f9899cc792c2355ebf39.zip |
ARM: make mach/gpio.h headers optional
Most platforms don't need mach/gpio.h and it prevents multi-platform
kernel images. Add CONFIG_NEED_MACH_GPIO_H and make platforns select it
if they need gpio.h. This is platforms that define __GPIOLIB_COMPLEX
or have lots of implicit includes pulled in by mach/gpio.h.
at91 and omap have gpio clean-up pending and can drop
CONFIG_NEED_MACH_GPIO_H once that is in.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/gpio.h')
-rw-r--r-- | arch/arm/include/asm/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index c402e9b31f4c..477e0206e016 100644 --- a/arch/arm/include/asm/gpio.h +++ b/arch/arm/include/asm/gpio.h @@ -6,7 +6,9 @@ #endif /* not all ARM platforms necessarily support this API ... */ +#ifdef CONFIG_NEED_MACH_GPIO_H #include <mach/gpio.h> +#endif #ifndef __ARM_GPIOLIB_COMPLEX /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ |