From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] ARM: OMAP: Fix warning in gpio.c Date: Tue, 9 Oct 2007 15:18:20 -0700 Message-ID: <20071009221819.GD4151@atomide.com> References: <47034031.7010004@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <47034031.7010004@googlemail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: Dirk Behme Cc: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org * Dirk Behme [071003 00:11]: > > Fix warning > > arch/arm/plat-omap/gpio.c: In function '_omap_gpio_init': > arch/arm/plat-omap/gpio.c:1299: warning: unused variable 'clk_name' > arch/arm/plat-omap/gpio.c: At top level: > arch/arm/plat-omap/gpio.c:1282: warning: 'gpio_fck' defined but not used > > for OMAP1. > > Signed-off-by: Dirk Behme > > Index: linux-osk/arch/arm/plat-omap/gpio.c > =================================================================== > --- linux-osk.orig/arch/arm/plat-omap/gpio.c > +++ linux-osk/arch/arm/plat-omap/gpio.c > @@ -1277,8 +1277,11 @@ static inline void mpuio_init(void) {} > /*---------------------------------------------------------------------*/ > > static int initialized; > -#if !defined(CONFIG_ARCH_OMAP34XX) > +#if !defined(CONFIG_ARCH_OMAP3) > static struct clk * gpio_ick; > +#endif > + > +#if defined(CONFIG_ARCH_OMAP2) > static struct clk * gpio_fck; > #endif > > @@ -1296,7 +1299,9 @@ static int __init _omap_gpio_init(void) > { > int i; > struct gpio_bank *bank; > +#if defined(CONFIG_ARCH_OMAP3) > char clk_name[11]; > +#endif > > initialized = 1; > Pushing today. Tony