From a501fd37f77a703a8710af8f6964e0ae269df973 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Tue, 6 May 2014 14:58:22 +0200 Subject: leds: Fix build for LEDS_CLASS=m on versatile I got a build error today, since LEDS_VERSATILE can be built-in while LEDS_CLASS is a module: drivers/built-in.o: In function `versatile_leds_probe': :(.text+0x155020): undefined reference to `led_classdev_register' I suggest we turn this option into 'tristate' so that the dependency tracking works correctly. Signed-off-by: Arnd Bergmann Acked-by: Linus Walleij Signed-off-by: Olof Johansson diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 9adc794..39e7177 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -488,7 +488,7 @@ config LEDS_BLINKM through I2C. Say Y to enable support for the BlinkM LED. config LEDS_VERSATILE - bool "LED support for the ARM Versatile and RealView" + tristate "LED support for the ARM Versatile and RealView" depends on ARCH_REALVIEW || ARCH_VERSATILE depends on LEDS_CLASS help -- cgit v0.10.2