From: Linus Torvalds Date: Tue, 8 Nov 2011 20:17:25 +0000 (-0800) Subject: x86 platform drivers: make Dell laptop driver select needed LED support X-Git-Tag: upstream/snapshot3+hdmi~8758 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9c913f327ccc5cf422b6dc9b5acfbc9b86e7b62;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git x86 platform drivers: make Dell laptop driver select needed LED support Otherwise we get compile errors like this: ERROR: "led_classdev_unregister" [drivers/platform/x86/dell-laptop.ko] undefined! ERROR: "led_classdev_register" [drivers/platform/x86/dell-laptop.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 when the dell-laptop support is enabled without the necessary LED support being enabled. Reported-by: Alessandro Suardi Acked-by: Matthew Garrett Signed-off-by: Linus Torvalds --- diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index f4e3d82..598d5b8 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -85,6 +85,8 @@ config DELL_LAPTOP depends on RFKILL || RFKILL = n depends on POWER_SUPPLY depends on SERIO_I8042 + select LEDS_CLASS + select NEW_LEDS default n ---help--- This driver adds support for rfkill and backlight control to Dell