Skip to content

Commit 048c28c

Browse files
committed
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 <[email protected]> Cc: Pramod Gurav <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: Gregory CLEMENT <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Laxman Dewangan <[email protected]> Cc: Alexandre Courbot <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Phil Reid <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 2527ecc commit 048c28c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpio/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ config GPIO_EP93XX
189189
config GPIO_ETRAXFS
190190
bool "Axis ETRAX FS General I/O"
191191
depends on CRIS || COMPILE_TEST
192-
depends on OF
192+
depends on OF_GPIO
193193
select GPIO_GENERIC
194194
select GPIOLIB_IRQCHIP
195195
help
@@ -215,7 +215,7 @@ config GPIO_GENERIC_PLATFORM
215215

216216
config GPIO_GRGPIO
217217
tristate "Aeroflex Gaisler GRGPIO support"
218-
depends on OF
218+
depends on OF_GPIO
219219
select GPIO_GENERIC
220220
select IRQ_DOMAIN
221221
help
@@ -313,7 +313,7 @@ config GPIO_MPC8XXX
313313
config GPIO_MVEBU
314314
def_bool y
315315
depends on PLAT_ORION
316-
depends on OF
316+
depends on OF_GPIO
317317
select GENERIC_IRQ_CHIP
318318

319319
config GPIO_MXC
@@ -406,7 +406,7 @@ config GPIO_TEGRA
406406
bool "NVIDIA Tegra GPIO support"
407407
default ARCH_TEGRA
408408
depends on ARCH_TEGRA || COMPILE_TEST
409-
depends on OF
409+
depends on OF_GPIO
410410
help
411411
Say yes here to support GPIO pins on NVIDIA Tegra SoCs.
412412

@@ -1100,7 +1100,7 @@ menu "SPI GPIO expanders"
11001100

11011101
config GPIO_74X164
11021102
tristate "74x164 serial-in/parallel-out 8-bits shift register"
1103-
depends on OF
1103+
depends on OF_GPIO
11041104
help
11051105
Driver for 74x164 compatible serial-in/parallel-out 8-outputs
11061106
shift registers. This driver can be used to provide access

0 commit comments

Comments
 (0)