of/irq: Fix bug in interrupt parsing refactor.
authorGrant Likely <grant.likely@linaro.org>
Fri, 1 Nov 2013 17:50:50 +0000 (10:50 -0700)
committerGrant Likely <grant.likely@linaro.org>
Sun, 3 Nov 2013 23:16:35 +0000 (23:16 +0000)
commit78119fd1068cc068f6112a57a5f6de0e5b20245a
tree8e0726dc0a7527c0e7f571c7953e3115c7bded7f
parent0976c946a610d06e907335b7a3afa6db046f8e1b
of/irq: Fix bug in interrupt parsing refactor.

Commit 2361613206e6, "of/irq: Refactor interrupt-map parsing" introduced
a bug. The irq parsing will fail for some nodes that don't have a reg
property. It is fixed by deferring the check for reg until it is
actually needed. Also adjust the testcase data to catch the bug.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Ming Lei <tom.leiming@gmail.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Cc: Rob Herring <rob.herring@calxeda.com>
arch/arm/boot/dts/testcases/tests-interrupts.dtsi
drivers/of/irq.c