HID: select NEW_LEDS for driver of Lenovo ThinkPad USB Keyboard with TrackPoint
authorBryan Wu <bryan.wu@canonical.com>
Sun, 17 Jun 2012 10:52:34 +0000 (18:52 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Jun 2012 13:28:05 +0000 (15:28 +0200)
commit 'HID: Driver for Lenovo Keyboard with Trackpoint'
(c1dcad2d32d0252e8a3023d20311b52a187ecda3) introduced a compiling error due to
unmetting dependency of CONFIG_LEDS_CLASS.

on i386:

ERROR: "led_brightness_set" [drivers/leds/led-class.ko] undefined!
ERROR: "leds_list" [drivers/leds/led-class.ko] undefined!
ERROR: "leds_list_lock" [drivers/leds/led-class.ko] undefined!

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig

index ca7e76cab83d699f5b90d1f0b35180a49efd51e6..cbf0e0344e3ebc06694cb0b9c86ea276a391618d 100644 (file)
@@ -271,6 +271,7 @@ config HID_LCPOWER
 config HID_LENOVO_TPKBD
        tristate "Lenovo ThinkPad USB Keyboard with TrackPoint"
        depends on USB_HID
+       select NEW_LEDS
        select LEDS_CLASS
        ---help---
        Support for the Lenovo ThinkPad USB Keyboard with TrackPoint.