From patchwork Tue Sep 18 03:30:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1470371 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 06979DF24C for ; Tue, 18 Sep 2012 03:31:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932704Ab2IRDav (ORCPT ); Mon, 17 Sep 2012 23:30:51 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:41936 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932657Ab2IRDav (ORCPT ); Mon, 17 Sep 2012 23:30:51 -0400 Received: by obbuo13 with SMTP id uo13so9899745obb.19 for ; Mon, 17 Sep 2012 20:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=1PFa2M+SxRHnpgvRJmo8du4VZrWjvRdCFSQWFpkOnIg=; b=l/Ke2hRcHRkE6HlKS3Kgg4kUxFirmHErKgz154TO8qkpLTMd5pdIt95Y5Eoh9wxfGk bIl2cs/LK3DJ1W8SZBJty77D4MQIhMljtpoeSeRzDY/XYUiGKs7bs/Ssw65ZOPSk9LG5 BZDY7syOLCQhiwnF/oYYH033cFsCMhKAhuba1nvA3d0Dx9Z9Wgdv2KtNde0hGryE5HHV bhMzNFFGAyPAXMxevuyzVvxcV8jTNZ85oN46W8UUk6oMEw+fo0FtVGJph3FX/2y2CjVu azIzA9VB0i1srbzJCcfwsBMVegMvWy3LV11PWmLCABQJpx9DKOa6+95P0hovbRXIlFRY kk3g== Received: by 10.60.29.134 with SMTP id k6mr13605884oeh.5.1347939050456; Mon, 17 Sep 2012 20:30:50 -0700 (PDT) Received: from [114.39.107.123] (114-39-107-123.dynamic.hinet.net. [114.39.107.123]) by mx.google.com with ESMTPS id i2sm13020232obn.19.2012.09.17.20.30.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 20:30:49 -0700 (PDT) Message-ID: <1347939042.15578.1.camel@phoenix> Subject: [PATCH] ARM: OMAP: OMAP_DEBUG_LEDS needs to select LEDS_CLASS From: Axel Lin To: Tony Lindgren Cc: Bryan Wu , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 18 Sep 2012 11:30:42 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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' 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