From: Geert Uytterhoeven Date: Tue, 5 May 2015 16:32:33 +0000 (+0200) Subject: spi: Allow compile test of GPIO consumers if !GPIOLIB X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5c2301a990f166e095a134e25644f845abaf6168;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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.