From: 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> References: <1297774156-23312-1-git-send-email-balbi@ti.com> Return-path: 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: by ywa8 with SMTP id 8so61878ywa.4 for ; Tue, 15 Feb 2011 04:49:27 -0800 (PST) In-Reply-To: <1297774156-23312-1-git-send-email-balbi@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Tony Lindgren Cc: Linux OMAP Mailing List , Felipe Balbi Fix the following compile warning: arch/arm/plat-omap/i2c.c:120:13: warning: 'omap_pm_set_max_mpu_wakeup_lat_compat' defined but not used arch/arm/plat-omap/i2c.c:125:38: warning: 'omap_i2c_latency' defined but not used Signed-off-by: Felipe Balbi --- arch/arm/plat-omap/i2c.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.4.rc2