diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-04 22:29:04 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-05 06:26:34 -0400 |
commit | 526a0dc771a5cac3224e26abd1f018976b967516 (patch) | |
tree | 70dcc181ec6d644ec9d41b483cf6037dda4fd1c8 /drivers/gpio/gpio-davinci.c | |
parent | 058b96d445a05eac71be5e6b5b5db34412b4b175 (diff) |
ARM: 7074/1: gpio: davinci: eliminate unused variable warnings
Since commit 5093aec872e5be7a55d8dd2b639e8a3818dc19db
"arm: davinci: Cleanup irq chip code", the variable 'mask' and 'g'
are not being used.
This patch eliminate below unused variable warnings:
CC drivers/gpio/gpio-davinci.o
drivers/gpio/gpio-davinci.c: In function 'gpio_irq_type':
drivers/gpio/gpio-davinci.c:234: warning: unused variable 'mask'
drivers/gpio/gpio-davinci.c:233: warning: unused variable 'g'
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r-- | drivers/gpio/gpio-davinci.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index a8066e8edade..df0d59570a84 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c | |||
@@ -230,9 +230,6 @@ static void gpio_irq_enable(struct irq_data *d) | |||
230 | 230 | ||
231 | static int gpio_irq_type(struct irq_data *d, unsigned trigger) | 231 | static int gpio_irq_type(struct irq_data *d, unsigned trigger) |
232 | { | 232 | { |
233 | struct davinci_gpio_regs __iomem *g = irq2regs(d->irq); | ||
234 | u32 mask = (u32) irq_data_get_irq_handler_data(d); | ||
235 | |||
236 | if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) | 233 | if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) |
237 | return -EINVAL; | 234 | return -EINVAL; |
238 | 235 | ||