]> www.infradead.org Git - linux.git/commitdiff
gpio: omap: allow building the module with COMPILE_TEST=y
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 5 Dec 2024 12:06:09 +0000 (13:06 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 12 Dec 2024 14:38:04 +0000 (15:38 +0100)
For better build coverage, allow building the gpio-omap driver with
COMPILE_TEST Kconfig option enabled.

While at it: simplify the dependencies and drop the dependency on ARM as
it's already implied by ARCH_OMAP.

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20241205120610.40644-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/Kconfig

index 56fee58e281e7cac7f287eb04e4c17a17f75ed04..d87b3d99f8f7aa2cb99374bd2ab44cb7459e17aa 100644 (file)
@@ -528,9 +528,9 @@ config GPIO_OCTEON
          family of SOCs.
 
 config GPIO_OMAP
-       tristate "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
+       tristate "TI OMAP GPIO support"
+       depends on ARCH_OMAP || COMPILE_TEST
        default y if ARCH_OMAP
-       depends on ARM
        select GENERIC_IRQ_CHIP
        select GPIOLIB_IRQCHIP
        help