projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
[linux-2.6-microblaze.git]
/
drivers
/
macintosh
/
windfarm_rm31.c
diff --git
a/drivers/macintosh/windfarm_rm31.c
b/drivers/macintosh/windfarm_rm31.c
index
844003f
..
0b9a79b
100644
(file)
--- 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;