Skip to content

Commit 0697ae8

Browse files
geertubroonie
authored andcommitted
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>
1 parent 92e963f commit 0697ae8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/spi/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ config SPI_BCM2835
9090

9191
config SPI_BCM2835AUX
9292
tristate "BCM2835 SPI auxiliary controller"
93-
depends on ARCH_BCM2835 || COMPILE_TEST
94-
depends on GPIOLIB
93+
depends on (ARCH_BCM2835 && GPIOLIB) || COMPILE_TEST
9594
help
9695
This selects a driver for the Broadcom BCM2835 SPI aux master.
9796

0 commit comments

Comments
 (0)