diff options
author | Anton Blanchard <anton@samba.org> | 2011-08-10 16:44:22 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-09-20 01:53:23 -0400 |
commit | 94db7c5e14f44b943febe54e089d077cd983d284 (patch) | |
tree | 1dc71fe4ee73a58209c3a60bcd3913fae25c463b /arch/powerpc/kernel/setup_64.c | |
parent | 6083184269fd723affca4f6340e491950267622a (diff) |
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/setup_64.c')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index aebef1320ed..eade1fd8ee2 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -278,7 +278,7 @@ static void __init initialize_cache_info(void) | |||
278 | 278 | ||
279 | DBG(" -> initialize_cache_info()\n"); | 279 | DBG(" -> initialize_cache_info()\n"); |
280 | 280 | ||
281 | for (np = NULL; (np = of_find_node_by_type(np, "cpu"));) { | 281 | for_each_node_by_type(np, "cpu") { |
282 | num_cpus += 1; | 282 | num_cpus += 1; |
283 | 283 | ||
284 | /* We're assuming *all* of the CPUs have the same | 284 | /* We're assuming *all* of the CPUs have the same |