From patchwork Thu Jun 2 05:09:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Miao X-Patchwork-Id: 1714 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:54:41 -0000 Delivered-To: patches@linaro.org Received: by 10.52.181.10 with SMTP id ds10cs348627vdc; Wed, 1 Jun 2011 22:09:34 -0700 (PDT) Received: by 10.42.138.193 with SMTP id d1mr703649icu.267.1306991373706; Wed, 01 Jun 2011 22:09:33 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id el7si802532icb.19.2011.06.01.22.09.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 22:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.y.miao@gmail.com designates 209.85.210.50 as permitted sender) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of eric.y.miao@gmail.com designates 209.85.210.50 as permitted sender) smtp.mail=eric.y.miao@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by pzk2 with SMTP id 2so271103pzk.37 for ; Wed, 01 Jun 2011 22:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=FWadsauaP3yZTCm1D4648NkhHOPE6P3z6s6gndwEs8E=; b=xEnnjyY0ulNXde+wrQRKoNE+76GpTmpKSVhAuIXLjAxkpJ7H1k8WRwUbDamlh0gOFF kCRSXjaxBOierWngygGEYO8EjNZU+jrbHOyw0m9v3qBI48WwPMXfuG+H6MOCYbjsO/qP u12/dIJw1WpyiL1fh0iu1lyBVGt3tRp+SHZJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=SWAJgf0uPEOuRszuRMERx/ZoV0V1/u4EAoeoQYDDmn6a54tAU0mND0v06BtrNgrbvT PP3AuUSmEVmzrT2SJcCViB1qcQslp5RCWYrkgj9sss1jYzhnrIj3J+AK6OTD6Q2yMHIf yE2LxpyMaL3JqWxmIVMpeeEzofdfNwAoj0YY4= Received: by 10.68.14.98 with SMTP id o2mr140528pbc.10.1306991372853; Wed, 01 Jun 2011 22:09:32 -0700 (PDT) Received: from localhost.localdomain ([202.115.1.35]) by mx.google.com with ESMTPS id o2sm264443pbj.49.2011.06.01.22.09.27 (version=SSLv3 cipher=OTHER); Wed, 01 Jun 2011 22:09:32 -0700 (PDT) From: Eric Miao To: "linux-kernel" Cc: Eric Miao , Eric Miao , Eric Miao , Richard Purdie Subject: [PATCH] leds: fix the menuconfig being wrongly displayed Date: Thu, 2 Jun 2011 13:09:14 +0800 Message-Id: <1306991354-11890-1-git-send-email-eric.y.miao@gmail.com> X-Mailer: git-send-email 1.7.4.1 From: Eric Miao 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 --- drivers/leds/Kconfig | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 23f0d5e..7066820 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -7,6 +7,8 @@ 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 @@ -21,8 +23,6 @@ config LEDS_GPIO_REGISTER As this function is used by arch code it must not be compiled as a module. -if NEW_LEDS - comment "LED drivers" config LEDS_88PM860X