linux-mips
[Top] [All Lists]

[PATCH 4/4] MIPS: lantiq: external irq sources are not loaded properly

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 4/4] MIPS: lantiq: external irq sources are not loaded properly
From: John Crispin <blogic@openwrt.org>
Date: Thu, 16 Aug 2012 11:09:22 +0200
Cc: linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org>
In-reply-to: <1345108162-1080-1-git-send-email-blogic@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1345108162-1080-1-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
Support for the external interrupt unit was broken when the code was converted
to devicetree support.

Signed-off-by: John Crispin <blogic@openwrt.org>
---
 arch/mips/lantiq/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index 87f15d6..f36acd1 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);
-- 
1.7.9.1


<Prev in Thread] Current Thread [Next in Thread>