diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2008-11-12 18:20:43 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-11-19 16:05:03 +1100 |
commit | 22059a90b82d6cd02d488c48c27a4d0ad976c919 (patch) | |
tree | 0e9a582693cdc58c90c4482b67ae1cda10daac8d /arch | |
parent | ba82efbd3b48cb2a0e03c043911ce44c28f2825a (diff) | |
download | kernel_samsung_smdk4412-22059a90b82d6cd02d488c48c27a4d0ad976c919.zip kernel_samsung_smdk4412-22059a90b82d6cd02d488c48c27a4d0ad976c919.tar.gz kernel_samsung_smdk4412-22059a90b82d6cd02d488c48c27a4d0ad976c919.tar.bz2 |
powerpc/pmac: Use of_find_node_with_property() in pmac_setup_arch()
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 82c14d2..1293772 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); |