浏览代码

powerpc: Use for_each_node_with_property() in of_irq_map_init()

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Michael Ellerman 16 年之前
父节点
当前提交
54018178ef
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      arch/powerpc/kernel/prom_parse.c

+ 1 - 4
arch/powerpc/kernel/prom_parse.c

@@ -731,10 +731,7 @@ void of_irq_map_init(unsigned int flags)
 	if (flags & OF_IMAP_NO_PHANDLE) {
 		struct device_node *np;
 
-		for(np = NULL; (np = of_find_all_nodes(np)) != NULL;) {
-			if (of_get_property(np, "interrupt-controller", NULL)
-			    == NULL)
-				continue;
+		for_each_node_with_property(np, "interrupt-controller") {
 			/* Skip /chosen/interrupt-controller */
 			if (strcmp(np->name, "chosen") == 0)
 				continue;