From patchwork Sun Oct 7 10:13:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 1560951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 13F8FDF238 for ; Sun, 7 Oct 2012 10:15:37 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TKnrk-00039l-91; Sun, 07 Oct 2012 10:13:44 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TKnre-00039X-J5 for linux-arm-kernel@lists.infradead.org; Sun, 07 Oct 2012 10:13:39 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi5so3410598pad.36 for ; Sun, 07 Oct 2012 03:13:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version:x-gm-message-state; bh=CWIXuf9MYuqS1WtUWxIZGWnJJ89vCTvnXtyuiBzUkDE=; b=awS1eu2BlaedTENAeMvPtM7irSAdxWXh7ilmLKnaRaUJYT3MsF67rGDKhHnlQSfuyv e5OT68u3SNmO/BtJGFan+xhVddlL69CjoemQYZYcLZb8OHNf0ZfdG2Cw1kOKkGb04YDS w/d9hwZje2KzjUtVZxxt4iCg0usKU33U6kynLjuJbp7WxlO87wj2FnM1VMBNeSFfgRwE 88d0TdRSBkfN+w3x28duXubuyLLgXKOcUY206aI9BBzrlWMAVBRLHS9HKaLPrh7XcuGA BaxPd7+YtuFTcG0DsWVc7qO29lOc+QhS6P5hNCXav9ZQL5u2vUKCYv7rv1xmqXrY/Ryn 2Apw== Received: by 10.68.231.67 with SMTP id te3mr44805741pbc.134.1349604816786; Sun, 07 Oct 2012 03:13:36 -0700 (PDT) Received: from [122.121.49.225] (122-121-49-225.dynamic.hinet.net. [122.121.49.225]) by mx.google.com with ESMTPS id qa4sm8928309pbb.70.2012.10.07.03.13.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 07 Oct 2012 03:13:36 -0700 (PDT) Message-ID: <1349604805.6017.1.camel@phoenix> Subject: [PATCH v2] ARM: OMAP: Fix dependency for OMAP_DEBUG_LEDS From: Axel Lin To: Tony Lindgren , Bryan Wu , Russell King - ARM Linux Date: Sun, 07 Oct 2012 18:13:25 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQlAKoHzFJWYSnvJapUSLHBnQtgs1hzIBwp9hf9ECTEy1w8Xbd/5iTXxK/YbFrOoV/AElXhL X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This fixes below build error when CONFIG_LEDS_CLASS is not set. LD init/built-in.o arch/arm/plat-omap/built-in.o: In function `fpga_probe': arch/arm/plat-omap/debug-leds.c:113: undefined reference to `led_classdev_register' arch/arm/plat-omap/debug-leds.c:113: undefined reference to `led_classdev_register' arch/arm/plat-omap/debug-leds.c:113: undefined reference to `led_classdev_register' arch/arm/plat-omap/debug-leds.c:113: undefined reference to `led_classdev_register' arch/arm/plat-omap/debug-leds.c:113: undefined reference to `led_classdev_register' arch/arm/plat-omap/built-in.o:arch/arm/plat-omap/debug-leds.c:113: more undefined references to `led_classdev_register' follow make: *** [vmlinux] Error 1 Signed-off-by: Axel Lin --- arch/arm/plat-omap/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index ca83a76..c262781 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig @@ -43,6 +43,7 @@ config OMAP_DEBUG_DEVICES config OMAP_DEBUG_LEDS def_bool y if NEW_LEDS + select LEDS_CLASS depends on OMAP_DEBUG_DEVICES config POWER_AVS_OMAP