From: Geert Uytterhoeven Date: Sun, 7 Feb 2016 14:12:29 +0000 (+0100) Subject: spi: Allow compile test of bcm2835aux if !GPIOLIB X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0697ae80fe3ccaf7d443fa5522fa7eeea34c19bb;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Mark Brown --- 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 config SPI_BCM2835AUX tristate "BCM2835 SPI auxiliary controller" - depends on ARCH_BCM2835 || COMPILE_TEST - depends on GPIOLIB + depends on (ARCH_BCM2835 && GPIOLIB) || COMPILE_TEST help This selects a driver for the Broadcom BCM2835 SPI aux master.