Commit b9c913f327ccc5cf422b6dc9b5acfbc9b86e7b62

Authored by Linus Torvalds
1 parent a8d12007c7

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 <alessandro.suardi@gmail.com>
Acked-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/platform/x86/Kconfig
... ... @@ -85,6 +85,8 @@
85 85 depends on RFKILL || RFKILL = n
86 86 depends on POWER_SUPPLY
87 87 depends on SERIO_I8042
  88 + select LEDS_CLASS
  89 + select NEW_LEDS
88 90 default n
89 91 ---help---
90 92 This driver adds support for rfkill and backlight control to Dell