From: Dirk Behme Date: Wed, 3 Oct 2007 07:09:37 +0000 (+0200) Subject: ARM: OMAP: Fix warning in gpio.c X-Git-Tag: v2.6.23-omap1~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0ef1ec8acf653b35b27920f399dc4096f74d4707;p=linux-2.6-omap-h63xx.git ARM: OMAP: Fix warning in gpio.c 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index cea20f747f9..16ec31015b9 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/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;