From: Eric Miao Date: Wed, 15 Jun 2011 22:08:40 +0000 (-0700) Subject: leds: fix the incorrect display in menuconfig X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~17289 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=45d16f09ddd66597e561876f5652c05bf986360a;p=mirror_ubuntu-artful-kernel.git leds: fix the incorrect display in menuconfig Seems when a config option does not have a dependency of the menuconfig, it messes the display of the rest configs, even if it's a hidden one. Signed-off-by: Eric Miao Cc: Richard Purdie Cc: Valdis Kletnieks Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 1032730cd17b..713d43b4e563 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -14,15 +14,14 @@ menuconfig NEW_LEDS This is not related to standard keyboard LEDs which are controlled via the input system. +if NEW_LEDS + config LEDS_CLASS bool "LED Class Support" - depends on NEW_LEDS help This option enables the led sysfs class in /sys/class/leds. You'll need this to do anything useful with LEDs. If unsure, say N. -if NEW_LEDS - comment "LED drivers" config LEDS_88PM860X