summaryrefslogtreecommitdiffstats
path: root/drivers/leds/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-05-07 10:08:10 +0200
committerBryan Wu <cooloney@gmail.com>2015-05-25 22:26:46 +0200
commit9ab1963d83fd5709037f2ef62cfe0062c538fe83 (patch)
treeb012fd6d4bf2f56cfc68b9b75025d5d504b762dc /drivers/leds/Kconfig
parentleds: leds-gpio: Add missing #include <linux/of.h> (diff)
downloadlinux-9ab1963d83fd5709037f2ef62cfe0062c538fe83.tar.xz
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