提交 22059a90 编写于 作者: M Michael Ellerman 提交者: Paul Mackerras

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

Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 ba82efbd
......@@ -310,9 +310,7 @@ static void __init pmac_setup_arch(void)
}
/* 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) {
pmac_newworld = 1;
of_node_put(ic);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册