aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/lantiq
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-08-16 04:09:22 -0400
committerJohn Crispin <blogic@openwrt.org>2012-08-22 18:08:17 -0400
commit70ec9054e7a65c878298666083f7d5b70ccf9032 (patch)
tree52b808dc04b82523f50de496d811c6cc682b7647 /arch/mips/lantiq
parent9c1628b603ee9d2bb220be0400c5dc6950cf012b (diff)
MIPS: lantiq: external irq sources are not loaded properly
Support for the external interrupt unit was broken when the code was converted to devicetree support. Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/4231/
Diffstat (limited to 'arch/mips/lantiq')
-rw-r--r--arch/mips/lantiq/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index 87f15d64afa2..f36acd1b3808 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -341,7 +341,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent)
341 341
342 /* the external interrupts are optional and xway only */ 342 /* the external interrupts are optional and xway only */
343 eiu_node = of_find_compatible_node(NULL, NULL, "lantiq,eiu"); 343 eiu_node = of_find_compatible_node(NULL, NULL, "lantiq,eiu");
344 if (eiu_node && of_address_to_resource(eiu_node, 0, &res)) { 344 if (eiu_node && !of_address_to_resource(eiu_node, 0, &res)) {
345 /* find out how many external irq sources we have */ 345 /* find out how many external irq sources we have */
346 const __be32 *count = of_get_property(node, 346 const __be32 *count = of_get_property(node,
347 "lantiq,count", NULL); 347 "lantiq,count", NULL);