projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba82efb
)
powerpc/pmac: Use of_find_node_with_property() in pmac_setup_arch()
author
Michael Ellerman
<michael@ellerman.id.au>
Wed, 12 Nov 2008 18:20:43 +0000
(18:20 +0000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 19 Nov 2008 05:05:03 +0000
(16:05 +1100)
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>
arch/powerpc/platforms/powermac/setup.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/powermac/setup.c
b/arch/powerpc/platforms/powermac/setup.c
index 82c14d203d8bcc92dfc7e4ba46a96ea16177cb8e..12937725f869efce550ce5e4d7819e97ba07cf54 100644
(file)
--- 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);