]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpio: GPIO_GRGPIO should depend on OF
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 5 Feb 2025 13:05:03 +0000 (14:05 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 5 Feb 2025 13:37:53 +0000 (14:37 +0100)
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: bc40668def384256 ("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>
drivers/gpio/Kconfig

index add5ad29a673c09082a913cb2404073b2034af48..98b4d1633b258b93d05ba66d53f647e7ec6ac364 100644 (file)
@@ -338,6 +338,7 @@ config GPIO_GRANITERAPIDS
 
 config GPIO_GRGPIO
        tristate "Aeroflex Gaisler GRGPIO support"
+       depends on OF || COMPILE_TEST
        select GPIO_GENERIC
        select IRQ_DOMAIN
        help