VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 2012-12-02 03:00:09 +0000 committer: Benjamin Herrenschmidt <benh@kernel.crashing.org> 2013-01-10 17:00:36 +1100 commit: c7c360eedb8c1eea302a224a8c83d19a4e4cf608 parent: e253ebab935693cc2eafbc93e94b68b47dc779db
Commit Summary:
powerpc/windfarm: Use for_each_node_by_type() macro
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/macintosh/windfarm_rm31.c b/drivers/macintosh/windfarm_rm31.c
index 844003fb4ef0..0b9a79b2f48a 100644
--- a/drivers/macintosh/windfarm_rm31.c
+++ b/drivers/macintosh/windfarm_rm31.c
@@ -696,7 +696,7 @@ static int __init wf_rm31_init(void)
 
 	/* Count the number of CPU cores */
 	nr_chips = 0;
-	for (cpu = NULL; (cpu = of_find_node_by_type(cpu, "cpu")) != NULL; )
+	for_each_node_by_type(cpu, "cpu")
 		++nr_chips;
 	if (nr_chips > NR_CHIPS)
 		nr_chips = NR_CHIPS;