[PATCH] [ARM] davinci: gpio: eliminate unused variable warnings

From: Axel Lin
Date: Mon Aug 15 2011 - 01:41:46 EST

Since commit 5093aec872e5be7a55d8dd2b639e8a3818dc19db
"arm: davinci: Cleanup irq chip code",
the variable 'mask' and 'g' are not being used in gpio_irq_type.

This patch eliminate below unused variable warnings:

CC arch/arm/mach-davinci/gpio.o
arch/arm/mach-davinci/gpio.c: In function 'gpio_irq_type':
arch/arm/mach-davinci/gpio.c:234: warning: unused variable 'mask'
arch/arm/mach-davinci/gpio.c:233: warning: unused variable 'g'

Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
arch/arm/mach-davinci/gpio.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-davinci/gpio.c b/arch/arm/mach-davinci/gpio.c
index a8066e8..df0d595 100644
--- a/arch/arm/mach-davinci/gpio.c
+++ b/arch/arm/mach-davinci/gpio.c
@@ -230,9 +230,6 @@ static void gpio_irq_enable(struct irq_data *d)

static int gpio_irq_type(struct irq_data *d, unsigned trigger)
- struct davinci_gpio_regs __iomem *g = irq2regs(d->irq);
- u32 mask = (u32) irq_data_get_irq_handler_data(d);
return -EINVAL;


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/