浏览代码

powerpc/pmac: Use of_find_node_with_property() in pmac_setup_arch()

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Michael Ellerman 16 年之前
父节点
当前提交
22059a90b8
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      arch/powerpc/platforms/powermac/setup.c

+ 1 - 3
arch/powerpc/platforms/powermac/setup.c

@@ -310,9 +310,7 @@ static void __init pmac_setup_arch(void)
 	}
 	}
 
 
 	/* See if newworld or oldworld */
 	/* See if newworld or oldworld */
-	for (ic = NULL; (ic = of_find_all_nodes(ic)) != NULL; )
-		if (of_get_property(ic, "interrupt-controller", NULL))
-			break;
+	ic = of_find_node_with_property(NULL, "interrupt-controller");
 	if (ic) {
 	if (ic) {
 		pmac_newworld = 1;
 		pmac_newworld = 1;
 		of_node_put(ic);
 		of_node_put(ic);