Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[GitHub/mt8127/android_kernel_alcatel_ttab.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;