aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-nomadik
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-05-06 05:45:18 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-06 15:17:19 -0400
commit2210d6453b4d888c122b2b1c236f50b0a2d30bfa (patch)
treec78132058af085474585713b4e2aeb350a527f83 /arch/arm/plat-nomadik
parent7a852d8060e1bb3a5e621caaebea86c43cf4a62d (diff)
ARM: 6102/1: nomadik-gpio: set a default trigger for interrupts
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>
Diffstat (limited to 'arch/arm/plat-nomadik')
-rw-r--r--arch/arm/plat-nomadik/gpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c
index b877d76878f9..eac9c9a7fbf9 100644
--- a/arch/arm/plat-nomadik/gpio.c
+++ b/arch/arm/plat-nomadik/gpio.c
@@ -245,6 +245,7 @@ static int nmk_gpio_init_irq(struct nmk_gpio_chip *nmk_chip)
245 set_irq_handler(i, handle_edge_irq); 245 set_irq_handler(i, handle_edge_irq);
246 set_irq_flags(i, IRQF_VALID); 246 set_irq_flags(i, IRQF_VALID);
247 set_irq_chip_data(i, nmk_chip); 247 set_irq_chip_data(i, nmk_chip);
248 set_irq_type(i, IRQ_TYPE_EDGE_FALLING);
248 } 249 }
249 set_irq_chained_handler(nmk_chip->parent_irq, nmk_gpio_irq_handler); 250 set_irq_chained_handler(nmk_chip->parent_irq, nmk_gpio_irq_handler);
250 set_irq_data(nmk_chip->parent_irq, nmk_chip); 251 set_irq_data(nmk_chip->parent_irq, nmk_chip);