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

Signed-off-by: Michael Ellerman <[email protected]>
Acked-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
Michael Ellerman 2008-11-12 18:20:43 +00:00 • committed by Paul Mackerras
commit 22059a90b8

View file

@ -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);