From: Michael Ellerman Date: Wed, 12 Nov 2008 18:20:43 +0000 (+0000) Subject: powerpc/pmac: Use of_find_node_with_property() in pmac_setup_arch() X-Git-Tag: v2.6.29-rc1~574^2~110 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=22059a90b82d6cd02d488c48c27a4d0ad976c919;p=linux-2.6-omap-h63xx.git powerpc/pmac: Use of_find_node_with_property() in pmac_setup_arch() Signed-off-by: Michael Ellerman Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 82c14d203d8..12937725f86 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c @@ -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);