ARM: pxa: pxa_cplds: honor probe deferral
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 26 Sep 2016 07:21:28 +0000 (09:21 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Tue, 18 Oct 2016 07:12:37 +0000 (09:12 +0200)
commit3738ca1b2a7bae482e2d29485414a1dc1a946153
tree9ea273d2dd7943bd290447e1cb9db9e75d75b899
parentd3570e3c5002d514582cad09d6892a4c78c3781b
ARM: pxa: pxa_cplds: honor probe deferral

The method to acquire the input interrupt was working in a platform data
based board, but was failing in a device-tree one when the gpio
controller was probed after pxa_cplds.

Use platform_get_irq() to benefit from the probe deferral
mechanism. Moreover, as seen in dm9000.c development, platform_get_irq()
doesn't honor the irq type IO resource (ie. edge rising for example),
and it must be passed again at irq request in a not device-tree build,
hence the irq_get_trigger_type() call.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/pxa_cplds_irqs.c