diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-05-05 18:32:33 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-06 16:20:59 +0100 |
commit | 5c2301a990f166e095a134e25644f845abaf6168 (patch) | |
tree | 6303855c21a15542b4d1cdda296df1f8f5343654 /drivers/spi/Kconfig | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) | |
download | linux-5c2301a990f166e095a134e25644f845abaf6168.tar.bz2 |
spi: Allow compile test of GPIO consumers if !GPIOLIB
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>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r-- | drivers/spi/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 198f96b7fb45..1c18c46d6598 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -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. |