diff options
author | Anton Blanchard <anton@samba.org> | 2011-08-10 20:44:22 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-09-20 15:53:23 +1000 |
commit | 94db7c5e14f44b943febe54e089d077cd983d284 (patch) | |
tree | 1dc71fe4ee73a58209c3a60bcd3913fae25c463b /arch/powerpc/kernel/machine_kexec_64.c | |
parent | 6083184269fd723affca4f6340e491950267622a (diff) | |
download | blackbird-op-linux-94db7c5e14f44b943febe54e089d077cd983d284.tar.gz blackbird-op-linux-94db7c5e14f44b943febe54e089d077cd983d284.zip |
powerpc: Use for_each_node_by_type instead of open coding it
Use for_each_node_by_type instead of open coding it.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/machine_kexec_64.c')
-rw-r--r-- | arch/powerpc/kernel/machine_kexec_64.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/machine_kexec_64.c b/arch/powerpc/kernel/machine_kexec_64.c index 583af70c4b14..26ccbf77dd41 100644 --- a/arch/powerpc/kernel/machine_kexec_64.c +++ b/arch/powerpc/kernel/machine_kexec_64.c @@ -74,8 +74,7 @@ int default_machine_kexec_prepare(struct kimage *image) } /* We also should not overwrite the tce tables */ - for (node = of_find_node_by_type(NULL, "pci"); node != NULL; - node = of_find_node_by_type(node, "pci")) { + for_each_node_by_type(node, "pci") { basep = of_get_property(node, "linux,tce-base", NULL); sizep = of_get_property(node, "linux,tce-size", NULL); if (basep == NULL || sizep == NULL) |