]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
spi: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 5 May 2015 16:32:33 +0000 (18:32 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 6 May 2015 15:20:59 +0000 (16:20 +0100)
commit5c2301a990f166e095a134e25644f845abaf6168
tree6303855c21a15542b4d1cdda296df1f8f5343654
parentb787f68c36d49bb1d9236f403813641efa74a031
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>
drivers/spi/Kconfig