Skip to content

Commit

Permalink
powerpc/pmac: Use of_find_node_with_property() in pmac_setup_arch()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Nov 19, 2008
1 parent ba82efb commit 22059a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/powerpc/platforms/powermac/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 22059a9

Please sign in to comment.