]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/macintosh/windfarm_pm72.c
powerpc/windfarm: Use for_each_node_by_type() macro
[karo-tx-linux.git] / drivers / macintosh / windfarm_pm72.c
index 6e5585357cd356dfde400a0ab6590b94cdc22b03..2f506b9d5a52bbc3ffa9cdf543b722641115e80d 100644 (file)
@@ -804,7 +804,7 @@ static int __init wf_pm72_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;