MIPS: lantiq: external irq sources are not loaded properly
authorJohn Crispin <blogic@openwrt.org>
Thu, 16 Aug 2012 08:09:22 +0000 (08:09 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 22 Aug 2012 22:08:17 +0000 (00:08 +0200)
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/

arch/mips/lantiq/irq.c

index 87f15d64afa238ba3dea402c106c7eb0b3d35d06..f36acd1b38086d341458d927c4c4db99d3a40e0f 100644 (file)
@@ -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);