gpio: GPIO_SAMA5D2_PIOBU should depend on ARCH_AT91
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 11 Jul 2022 08:36:35 +0000 (10:36 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Tue, 19 Jul 2022 07:57:41 +0000 (09:57 +0200)
The SAMA5D2 PIOBU is only present on some AT91/Microchip SoCs.  Hence
add a dependency on ARCH_AT91, to prevent asking the user about this
driver when configuring a kernel without AT91/Microchip SoC support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/Kconfig

index b019619..1d9316c 100644 (file)
@@ -544,6 +544,7 @@ config GPIO_SAMA5D2_PIOBU
        tristate "SAMA5D2 PIOBU GPIO support"
        depends on MFD_SYSCON
        depends on OF_GPIO
+       depends on ARCH_AT91 || COMPILE_TEST
        select GPIO_SYSCON
        help
          Say yes here to use the PIOBU pins as GPIOs.