]> git.baikalelectronics.ru Git - kernel.git/commit
leds: Fix build for LEDS_CLASS=m on versatile
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 May 2014 12:58:22 +0000 (14:58 +0200)
committerOlof Johansson <olof@lixom.net>
Sun, 11 May 2014 03:11:49 +0000 (20:11 -0700)
commita21ca2ddb7dab2985555630f018876bac18c7dae
tree91d24245fdc4a2f52dd96b95fadf95fbd2df7abb
parent5afbb81be12d283197ebdeb6d649d272de42e82d
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 <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/leds/Kconfig