Skip to content

Commit 5393f40

Browse files
geertuBartosz Golaszewski
authored andcommitted
gpio: GPIO_GRGPIO should depend on OF
While the Aeroflex Gaisler GRGPIO driver has no build-time dependency on gpiolib-of, it supports only DT-based configuration, and is used only on DT systems. Hence add a dependency on OF, to prevent asking the user about this driver when configuring a kernel without DT support. Fixes: bc40668 ("gpio: grgpio: drop Kconfig dependency on OF_GPIO") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Link: https://lore.kernel.org/r/db6da3d11bf850d89f199e5c740d8f133e38078d.1738760539.git.geert+renesas@glider.be Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 015b7da commit 5393f40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ config GPIO_GRANITERAPIDS
338338

339339
config GPIO_GRGPIO
340340
tristate "Aeroflex Gaisler GRGPIO support"
341+
depends on OF || COMPILE_TEST
341342
select GPIO_GENERIC
342343
select IRQ_DOMAIN
343344
help

0 commit comments

Comments
 (0)