]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 5 May 2015 16:32:33 +0000 (18:32 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 6 May 2015 15:20:59 +0000 (16:20 +0100)
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig

index 198f96b7fb45dab78845ba1fcde123ea680e2082..1c18c46d6598219746fd62c705d02a0b1d5eb0a5 100644 (file)
@@ -220,7 +220,7 @@ config SPI_FALCON
 
 config SPI_GPIO
        tristate "GPIO-based bitbanging SPI Master"
-       depends on GPIOLIB
+       depends on GPIOLIB || COMPILE_TEST
        select SPI_BITBANG
        help
          This simple GPIO bitbanging SPI master uses the arch-neutral GPIO
@@ -326,7 +326,7 @@ config SPI_MESON_SPIFC
 
 config SPI_OC_TINY
        tristate "OpenCores tiny SPI"
-       depends on GPIOLIB
+       depends on GPIOLIB || COMPILE_TEST
        select SPI_BITBANG
        help
          This is the driver for OpenCores tiny SPI master controller.