diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2016-02-07 09:12:29 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-08 08:42:10 -0500 |
commit | 0697ae80fe3ccaf7d443fa5522fa7eeea34c19bb (patch) | |
tree | c415db9b3f4f860ce3dde0d8042c6aab7f1a159e | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
spi: Allow compile test of bcm2835aux 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 of SPI_BCM2835AUX on GPIOLIB if COMPILE_TEST is
enabled.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/Kconfig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 77064160dd76..4e08d42a9fa1 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig | |||
@@ -90,8 +90,7 @@ config SPI_BCM2835 | |||
90 | 90 | ||
91 | config SPI_BCM2835AUX | 91 | config SPI_BCM2835AUX |
92 | tristate "BCM2835 SPI auxiliary controller" | 92 | tristate "BCM2835 SPI auxiliary controller" |
93 | depends on ARCH_BCM2835 || COMPILE_TEST | 93 | depends on (ARCH_BCM2835 && GPIOLIB) || COMPILE_TEST |
94 | depends on GPIOLIB | ||
95 | help | 94 | help |
96 | This selects a driver for the Broadcom BCM2835 SPI aux master. | 95 | This selects a driver for the Broadcom BCM2835 SPI aux master. |
97 | 96 | ||