[PATCH] more for_each_cpu() conversions
[safe/jmp/linux-2.6] / arch / powerpc / kernel / setup_32.c
index e5d285a..dc2770d 100644 (file)
@@ -272,9 +272,8 @@ int __init ppc_init(void)
        if ( ppc_md.progress ) ppc_md.progress("             ", 0xffff);
 
        /* register CPU devices */
-       for (i = 0; i < NR_CPUS; i++)
-               if (cpu_possible(i))
-                       register_cpu(&cpu_devices[i], i, NULL);
+       for_each_cpu(i)
+               register_cpu(&cpu_devices[i], i, NULL);
 
        /* call platform init */
        if (ppc_md.init != NULL) {
@@ -299,9 +298,7 @@ void __init setup_arch(char **cmdline_p)
        if (ppc_md.init_early)
                ppc_md.init_early();
 
-#ifdef CONFIG_SERIAL_8250
        find_legacy_serial_ports();
-#endif
        finish_device_tree();
 
        smp_setup_cpu_maps();