ARM: 6102/1: nomadik-gpio: set a default trigger for interrupts
authorRabin Vincent <rabin.vincent@stericsson.com>
Thu, 6 May 2010 09:45:18 +0000 (10:45 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 6 May 2010 19:17:19 +0000 (20:17 +0100)
Set a default trigger type for interrupts, otherwise if request_irq is
called without specifiying a trigger type, the interrupt will not
actually be enabled.

Acked-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-nomadik/gpio.c

index b877d76878f95fc0029e207496045beb1b57d9ae..eac9c9a7fbf9b682b750ee868e72c2afe6c9cf08 100644 (file)
@@ -245,6 +245,7 @@ static int nmk_gpio_init_irq(struct nmk_gpio_chip *nmk_chip)
                set_irq_handler(i, handle_edge_irq);
                set_irq_flags(i, IRQF_VALID);
                set_irq_chip_data(i, nmk_chip);
+               set_irq_type(i, IRQ_TYPE_EDGE_FALLING);
        }
        set_irq_chained_handler(nmk_chip->parent_irq, nmk_gpio_irq_handler);
        set_irq_data(nmk_chip->parent_irq, nmk_chip);