aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/prom_parse.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
index bc1fb27368af..2a1c02c56967 100644
--- a/arch/powerpc/kernel/prom_parse.c
+++ b/arch/powerpc/kernel/prom_parse.c
@@ -731,10 +731,7 @@ void of_irq_map_init(unsigned int flags)
731 if (flags & OF_IMAP_NO_PHANDLE) { 731 if (flags & OF_IMAP_NO_PHANDLE) {
732 struct device_node *np; 732 struct device_node *np;
733 733
734 for(np = NULL; (np = of_find_all_nodes(np)) != NULL;) { 734 for_each_node_with_property(np, "interrupt-controller") {
735 if (of_get_property(np, "interrupt-controller", NULL)
736 == NULL)
737 continue;
738 /* Skip /chosen/interrupt-controller */ 735 /* Skip /chosen/interrupt-controller */
739 if (strcmp(np->name, "chosen") == 0) 736 if (strcmp(np->name, "chosen") == 0)
740 continue; 737 continue;