From: John Crispin Date: Thu, 16 Aug 2012 08:09:22 +0000 (+0000) Subject: MIPS: lantiq: external irq sources are not loaded properly X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=70ec9054e7a65c878298666083f7d5b70ccf9032;p=openwrt%2Fstaging%2Fblogic.git 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 Patchwork: http://patchwork.linux-mips.org/patch/4231/ --- 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) /* the external interrupts are optional and xway only */ eiu_node = of_find_compatible_node(NULL, NULL, "lantiq,eiu"); - if (eiu_node && of_address_to_resource(eiu_node, 0, &res)) { + if (eiu_node && !of_address_to_resource(eiu_node, 0, &res)) { /* find out how many external irq sources we have */ const __be32 *count = of_get_property(node, "lantiq,count", NULL);