Skip to content

Commit

Permalink
MIPS: lantiq: external irq sources are not loaded properly
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
John Crispin committed Aug 22, 2012
1 parent 9c1628b commit 70ec905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/lantiq/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 70ec905

Please sign in to comment.