MIPS: JZ4740: GPIO: Check correct IRQ in demux handler
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 24 Sep 2011 00:29:54 +0000 (02:29 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Oct 2011 22:34:25 +0000 (23:34 +0100)
Check the trigger direction for the triggered IRQ instead of the parent IRQ.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: http://patchwork.linux-mips.org/patch/2433/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/jz4740/gpio.c

index bbbe12ba60ab9dcc33e2175c697942ab2b14ea74..e1ddb95c05e3459569105a34933a50906be65097 100644 (file)
@@ -309,7 +309,7 @@ static void jz_gpio_irq_demux_handler(unsigned int irq, struct irq_desc *desc)
 
        gpio_irq = chip->irq_base + __fls(flag);
 
-       jz_gpio_check_trigger_both(chip, irq);
+       jz_gpio_check_trigger_both(chip, gpio_irq);
 
        generic_handle_irq(gpio_irq);
 };