ARM: make mach/gpio.h headers optional
authorRob Herring <rob.herring@calxeda.com>
Tue, 28 Aug 2012 18:06:41 +0000 (13:06 -0500)
committerRob Herring <rob.herring@calxeda.com>
Fri, 14 Sep 2012 14:21:59 +0000 (09:21 -0500)
commit01464226ac6089bd6a33f9899cc792c2355ebf39
tree8f241525ea0c3e39d9188299b091b39c04bcb295
parentce91574c202b8581ad15bfb1427af824f462c3d2
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>
25 files changed:
arch/arm/Kconfig
arch/arm/include/asm/gpio.h
arch/arm/mach-dove/include/mach/gpio.h [deleted file]
arch/arm/mach-ep93xx/include/mach/gpio.h [deleted file]
arch/arm/mach-highbank/include/mach/gpio.h [deleted file]
arch/arm/mach-ixp4xx/include/mach/gpio.h [deleted file]
arch/arm/mach-kirkwood/include/mach/gpio.h [deleted file]
arch/arm/mach-msm/include/mach/gpio.h [deleted file]
arch/arm/mach-mxs/include/mach/gpio.h [deleted file]
arch/arm/mach-nomadik/include/mach/gpio.h [deleted file]
arch/arm/mach-orion5x/include/mach/gpio.h [deleted file]
arch/arm/mach-picoxcell/include/mach/gpio.h [deleted file]
arch/arm/mach-realview/include/mach/gpio.h [deleted file]
arch/arm/mach-shmobile/include/mach/gpio.h [deleted file]
arch/arm/mach-spear13xx/include/mach/gpio.h [deleted file]
arch/arm/mach-spear3xx/include/mach/gpio.h [deleted file]
arch/arm/mach-spear6xx/include/mach/gpio.h [deleted file]
arch/arm/mach-tegra/include/mach/gpio.h [deleted file]
arch/arm/mach-u300/include/mach/gpio.h [deleted file]
arch/arm/mach-ux500/include/mach/gpio.h [deleted file]
arch/arm/mach-versatile/include/mach/gpio.h [deleted file]
arch/arm/mach-vexpress/include/mach/gpio.h [deleted file]
arch/arm/mach-vt8500/include/mach/gpio.h [deleted file]
arch/arm/plat-mxc/include/mach/gpio.h [deleted file]
arch/arm/plat-spear/include/plat/gpio.h [deleted file]