leds: leds-gpio: Allow compile test if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 7 May 2015 08:08:10 +0000 (01:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 25 May 2015 20:26:46 +0000 (13:26 -0700)
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>
drivers/leds/Kconfig

index c00c3afb6241f012ce4a2179ca0107cf7cc3e6f0..ec26dd18b891d45f736b674e234e9ba4f9f675c4 100644 (file)
@@ -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
This page took 0.04671 seconds and 5 git commands to generate.