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://git.ipfire.org/?a=commitdiff_plain;h=22059a90b82d6cd02d488c48c27a4d0ad976c919;p=thirdparty%2Fkernel%2Flinux.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 82c14d203d8bc..12937725f869e 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);