Commit 22059a90 authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras

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

Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ba82efbd
...@@ -310,9 +310,7 @@ static void __init pmac_setup_arch(void) ...@@ -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; ) ic = of_find_node_with_property(NULL, "interrupt-controller");
if (of_get_property(ic, "interrupt-controller", NULL))
break;
if (ic) { if (ic) {
pmac_newworld = 1; pmac_newworld = 1;
of_node_put(ic); of_node_put(ic);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment