]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix GPIO IRQ unmask
authorKevin Hilman <khilman@mvista.com>
Thu, 17 Jan 2008 05:56:14 +0000 (21:56 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 20 Mar 2008 14:57:54 +0000 (16:57 +0200)
GPIO IRQ unmask doesn't actually do anything useful.  The problem is
hidden by a separate explicit mass unmask at the end of the chained
bank handler.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/gpio.c

index 66a1455595f49c7d15c5b861ce332d5e6a448586..8c78e4e57b5cf09c44547eb74c277ed3fc7d4803 100644 (file)
@@ -1134,10 +1134,9 @@ static void gpio_mask_irq(unsigned int irq)
 static void gpio_unmask_irq(unsigned int irq)
 {
        unsigned int gpio = irq - IH_GPIO_BASE;
-       unsigned int gpio_idx = get_gpio_index(gpio);
        struct gpio_bank *bank = get_irq_chip_data(irq);
 
-       _set_gpio_irqenable(bank, gpio_idx, 1);
+       _set_gpio_irqenable(bank, gpio, 1);
 }
 
 static struct irq_chip gpio_irq_chip = {