Skip to content

Commit

Permalink
MIPS: JZ4740: GPIO: Check correct IRQ in demux handler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Ralf Baechle committed Oct 24, 2011
1 parent fe5a8b7 commit 9330363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/jz4740/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 9330363

Please sign in to comment.