From patchwork Tue Dec 1 13:03:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 63934 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB1D12Ym030068 for ; Tue, 1 Dec 2009 13:05:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753378AbZLANEx (ORCPT ); Tue, 1 Dec 2009 08:04:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753368AbZLANEx (ORCPT ); Tue, 1 Dec 2009 08:04:53 -0500 Received: from smtp.nokia.com ([192.100.122.233]:20652 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753244AbZLANEx (ORCPT ); Tue, 1 Dec 2009 08:04:53 -0500 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB1D42X7013397; Tue, 1 Dec 2009 15:04:18 +0200 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 1 Dec 2009 15:04:16 +0200 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 1 Dec 2009 15:04:16 +0200 Received: from localhost.localdomain (esdhcp04340.research.nokia.com [172.21.43.40]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id nB1D42da028094; Tue, 1 Dec 2009 15:04:14 +0200 From: Felipe Balbi To: Tony Lindgren Cc: linux-omap@vger.kernel.org, Santosh Shilimkar , Kevin Hilman , Kalle Valo , Jean Pihet , Vikram Pandita , Paul Walmsley , Hiroshi DOYU , David Brownell , Felipe Balbi Subject: [rfc/rft/patch 6/9] arm: omap: gpio: kill compile warning in gpio.c Date: Tue, 1 Dec 2009 15:03:52 +0200 Message-Id: <1259672635-12306-7-git-send-email-felipe.balbi@nokia.com> X-Mailer: git-send-email 1.6.6.rc0 In-Reply-To: <1259672635-12306-1-git-send-email-felipe.balbi@nokia.com> References: <1259672635-12306-1-git-send-email-felipe.balbi@nokia.com> X-OriginalArrivalTime: 01 Dec 2009 13:04:16.0340 (UTC) FILETIME=[C9636940:01CA7286] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 055160e..487c651 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -1072,7 +1072,10 @@ static inline void _set_gpio_irqenable(struct gpio_bank *bank, int gpio, int ena */ static int _set_gpio_wakeup(struct gpio_bank *bank, int gpio, int enable) { +#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP24XX) || \ + defined(CONFIG_ARCH_OMAP34XX) || defined(CONFIG_ARCH_OMAP4) unsigned long flags; +#endif switch (bank->method) { #ifdef CONFIG_ARCH_OMAP16XX