From patchwork Tue Feb 15 12:49:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 558721 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1FCnUNs010968 for ; Tue, 15 Feb 2011 12:49:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754885Ab1BOMt3 (ORCPT ); Tue, 15 Feb 2011 07:49:29 -0500 Received: from na3sys009aog106.obsmtp.com ([74.125.149.77]:36443 "EHLO na3sys009aog106.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754853Ab1BOMt2 (ORCPT ); Tue, 15 Feb 2011 07:49:28 -0500 Received: from source ([209.85.213.45]) (using TLSv1) by na3sys009aob106.postini.com ([74.125.148.12]) with SMTP ID DSNKTVp2V6fCrRpLDjgmLKAFYLq27sTwbynE@postini.com; Tue, 15 Feb 2011 04:49:28 PST Received: by ywa8 with SMTP id 8so61878ywa.4 for ; Tue, 15 Feb 2011 04:49:27 -0800 (PST) Received: by 10.151.11.15 with SMTP id o15mr5980620ybi.265.1297774167141; Tue, 15 Feb 2011 04:49:27 -0800 (PST) Received: from localhost (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id q31sm2432694yba.3.2011.02.15.04.49.25 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 04:49:26 -0800 (PST) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , Felipe Balbi Subject: [PATCH 1/6] arm: omap: i2c: fix compile warning Date: Tue, 15 Feb 2011 14:49:11 +0200 Message-Id: <1297774156-23312-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.4.rc2 In-Reply-To: <1297774156-23312-1-git-send-email-balbi@ti.com> References: <1297774156-23312-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n 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 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Feb 2011 12:49:30 +0000 (UTC) diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index a4f8003..3341ca4 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c @@ -112,6 +112,7 @@ static inline int omap1_i2c_add_bus(int bus_id) } +#ifdef CONFIG_ARCH_OMAP2PLUS /* * XXX This function is a temporary compatibility wrapper - only * needed until the I2C driver can be converted to call @@ -130,7 +131,6 @@ static struct omap_device_pm_latency omap_i2c_latency[] = { }, }; -#ifdef CONFIG_ARCH_OMAP2PLUS static inline int omap2_i2c_add_bus(int bus_id) { int l;