From patchwork Tue May 31 12:55:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 832342 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4VCu8QX010196 for ; Tue, 31 May 2011 12:56:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753443Ab1EaMzw (ORCPT ); Tue, 31 May 2011 08:55:52 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:50697 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753334Ab1EaMzv (ORCPT ); Tue, 31 May 2011 08:55:51 -0400 Received: by pwi15 with SMTP id 15so2036118pwi.19 for ; Tue, 31 May 2011 05:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=RcMgob87gv4li9LHUjpMFfH7UFSNHeXgqpl28p2DWu0=; b=D9nmHcLIF7yx4U9x2+vAMAXep+RSPi3kxOUUV4SDvpr0Pe1HrwiaE1Ur4FY+PgUxdY EwFxbqoXu7d588sC1H7ZBE/vhq894/bBhs6RfDlsu8+BQhAllEmVclrsi4HsC6XJkjjo R7zPuxChJU5AcAWJekPVE+ChvZS9F9bBGGXwc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=JibbX7t7daIkhnCm9pYN2ntDgqlCzKPgC0e2LgvNhoP/+uqSlQzIh6JXqo7aygMseA r7xeA658Ot28dssWCDdyXjLKJbCFzOcO1UflQvmgfrSWBF39T7nKsiu+ODZC8E1OF7qj WNekaMJX/9h8NoLlhl+ynuPafVWq3ilrHHGH4= Received: by 10.68.32.167 with SMTP id k7mr2440971pbi.438.1306846551354; Tue, 31 May 2011 05:55:51 -0700 (PDT) Received: from [59.117.65.239] (59-117-65-239.dynamic.hinet.net [59.117.65.239]) by mx.google.com with ESMTPS id k4sm29804pbl.27.2011.05.31.05.55.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 May 2011 05:55:50 -0700 (PDT) Subject: [PATCH v2] ARM: OMAP2: Add missing include of linux/gpio.h From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Syed Mohammed Khasim , Grazvydas Ignotas , Steve Sakoman , Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Tue, 31 May 2011 20:55:44 +0800 Message-ID: <1306846544.30148.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 31 May 2011 12:56:09 +0000 (UTC) I got some build error like below while executing "make omap2plus_defconfig". CC arch/arm/mach-omap2/board-2430sdp.o arch/arm/mach-omap2/board-2430sdp.c: In function 'omap_2430sdp_init': arch/arm/mach-omap2/board-2430sdp.c:247: error: 'GPIOF_OUT_INIT_LOW' undeclared (first use in this function) arch/arm/mach-omap2/board-2430sdp.c:247: error: (Each undeclared identifier is reported only once arch/arm/mach-omap2/board-2430sdp.c:247: error: for each function it appears in.) This patch fixes the build error by include linux/gpio.h instead of mach/gpio.h. Signed-off-by: Axel Lin Cc: Syed Mohammed Khasim Cc: Tony Lindgren Cc: Grazvydas Ignotas Cc: Steve Sakoman --- arch/arm/mach-omap2/board-2430sdp.c | 2 +- arch/arm/mach-omap2/board-apollon.c | 2 +- arch/arm/mach-omap2/board-omap3pandora.c | 2 +- arch/arm/mach-omap2/board-overo.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index d54969b..5de6eac 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c @@ -26,13 +26,13 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index f3beb8e..b124bdf 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c @@ -27,13 +27,13 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 1d10736..5ee034a 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -41,7 +42,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 1555918..9952c20 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -45,7 +46,6 @@ #include #include