summaryrefslogtreecommitdiffstats
path: root/drivers/leds/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-05-07 01:08:10 -0700
committerBryan Wu <cooloney@gmail.com>2015-05-25 13:26:46 -0700
commit9ab1963d83fd5709037f2ef62cfe0062c538fe83 (patch)
treeb012fd6d4bf2f56cfc68b9b75025d5d504b762dc /drivers/leds/Kconfig
parent403097f7205dcf8e6a53091063b6a4b847d35484 (diff)
downloadlinux-9ab1963d83fd5709037f2ef62cfe0062c538fe83.tar.gz
linux-9ab1963d83fd5709037f2ef62cfe0062c538fe83.tar.bz2
linux-9ab1963d83fd5709037f2ef62cfe0062c538fe83.zip
leds: leds-gpio: Allow compile test 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 LEDS_GPIO on GPIOLIB if COMPILE_TEST is enabled. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r--drivers/leds/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index c00c3afb6241..ec26dd18b891 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -198,7 +198,7 @@ config LEDS_PCA9532_GPIO
config LEDS_GPIO
tristate "LED Support for GPIO connected LEDs"
depends on LEDS_CLASS
- depends on GPIOLIB
+ depends on GPIOLIB || COMPILE_TEST
help
This option enables support for the LEDs connected to GPIO
outputs. To be useful the particular board must have LEDs