mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
gpio-pxa: gpio0 and gpio1 support on dt
pxa_gpio_probe() has some issues supporting the gpio0 and gpio1 interrupts under device-tree - it never actually sets up the chain handler to get interrupts on edge detect for GPIO0 and GPIO1. Signed-off-by: Andrew Ruder <[email protected]> Acked-by: Haojian Zhuang <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
0fb394122a
commit
b41acf8869
1 changed files with 5 additions and 0 deletions
|
|
@ -649,6 +649,11 @@ static int pxa_gpio_probe(struct platform_device *pdev)
|
|||
handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
} else {
|
||||
if (irq0 > 0)
|
||||
irq_set_chained_handler(irq0, pxa_gpio_demux_handler);
|
||||
if (irq1 > 0)
|
||||
irq_set_chained_handler(irq1, pxa_gpio_demux_handler);
|
||||
}
|
||||
|
||||
irq_set_chained_handler(irq_mux, pxa_gpio_demux_handler);
|
||||
|
|
|
|||
Loading…
Reference in a new issue