diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-08-16 06:07:31 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-08-19 09:01:29 -0400 |
commit | 048c28c91e56781082bc17d181e460b81e7e8bcb (patch) | |
tree | a82c19b86eec3a0af0dcb5729b740661926089ef | |
parent | 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 (diff) |
gpio: make any OF dependent driver depend on OF_GPIO
The drivers that depend on OF but not OF_GPIO are wreaking havoc
with the autobuilders for archs that have all requirements for
OF but not for OF_GPIO, particularly the UM (Usermode) arch does
not have iomem (NO_IOMEM) which result in configuring GPIOLIB but
without OF_GPIO which is wrong if the driver is using the .of_node
of the gpiochip, which only appears with OF_GPIO.
After a brief look at the drivers just depending on OF it seems
most if not all of them actually require stuff from gpiolib-of so
the dependency is wrong in the first place.
This simply patches the Kconfig so that all GPIO drivers using OF
depend on OF_GPIO rather than just OF.
Cc: Rabin Vincent <rabin@rab.in>
Cc: Pramod Gurav <pramod.gurav@smartplayin.com>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: Thierry Reding <treding@nvidia.com>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Alexandre Courbot <acourbot@nvidia.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/Kconfig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 24f833c3d3ba..66a94103798b 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -189,7 +189,7 @@ config GPIO_EP93XX | |||
189 | config GPIO_ETRAXFS | 189 | config GPIO_ETRAXFS |
190 | bool "Axis ETRAX FS General I/O" | 190 | bool "Axis ETRAX FS General I/O" |
191 | depends on CRIS || COMPILE_TEST | 191 | depends on CRIS || COMPILE_TEST |
192 | depends on OF | 192 | depends on OF_GPIO |
193 | select GPIO_GENERIC | 193 | select GPIO_GENERIC |
194 | select GPIOLIB_IRQCHIP | 194 | select GPIOLIB_IRQCHIP |
195 | help | 195 | help |
@@ -215,7 +215,7 @@ config GPIO_GENERIC_PLATFORM | |||
215 | 215 | ||
216 | config GPIO_GRGPIO | 216 | config GPIO_GRGPIO |
217 | tristate "Aeroflex Gaisler GRGPIO support" | 217 | tristate "Aeroflex Gaisler GRGPIO support" |
218 | depends on OF | 218 | depends on OF_GPIO |
219 | select GPIO_GENERIC | 219 | select GPIO_GENERIC |
220 | select IRQ_DOMAIN | 220 | select IRQ_DOMAIN |
221 | help | 221 | help |
@@ -313,7 +313,7 @@ config GPIO_MPC8XXX | |||
313 | config GPIO_MVEBU | 313 | config GPIO_MVEBU |
314 | def_bool y | 314 | def_bool y |
315 | depends on PLAT_ORION | 315 | depends on PLAT_ORION |
316 | depends on OF | 316 | depends on OF_GPIO |
317 | select GENERIC_IRQ_CHIP | 317 | select GENERIC_IRQ_CHIP |
318 | 318 | ||
319 | config GPIO_MXC | 319 | config GPIO_MXC |
@@ -406,7 +406,7 @@ config GPIO_TEGRA | |||
406 | bool "NVIDIA Tegra GPIO support" | 406 | bool "NVIDIA Tegra GPIO support" |
407 | default ARCH_TEGRA | 407 | default ARCH_TEGRA |
408 | depends on ARCH_TEGRA || COMPILE_TEST | 408 | depends on ARCH_TEGRA || COMPILE_TEST |
409 | depends on OF | 409 | depends on OF_GPIO |
410 | help | 410 | help |
411 | Say yes here to support GPIO pins on NVIDIA Tegra SoCs. | 411 | Say yes here to support GPIO pins on NVIDIA Tegra SoCs. |
412 | 412 | ||
@@ -1100,7 +1100,7 @@ menu "SPI GPIO expanders" | |||
1100 | 1100 | ||
1101 | config GPIO_74X164 | 1101 | config GPIO_74X164 |
1102 | tristate "74x164 serial-in/parallel-out 8-bits shift register" | 1102 | tristate "74x164 serial-in/parallel-out 8-bits shift register" |
1103 | depends on OF | 1103 | depends on OF_GPIO |
1104 | help | 1104 | help |
1105 | Driver for 74x164 compatible serial-in/parallel-out 8-outputs | 1105 | Driver for 74x164 compatible serial-in/parallel-out 8-outputs |
1106 | shift registers. This driver can be used to provide access | 1106 | shift registers. This driver can be used to provide access |