]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/powermac/setup.c
powerpc/powermac: Hotplug /sys entries are missing
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / powermac / setup.c
index 82c14d203d8bcc92dfc7e4ba46a96ea16177cb8e..45936c9ed0ec5a1db19ee11d84facdcd85412740 100644 (file)
@@ -60,7 +60,6 @@
 #include <asm/system.h>
 #include <asm/pgtable.h>
 #include <asm/io.h>
-#include <asm/kexec.h>
 #include <asm/pci-bridge.h>
 #include <asm/ohare.h>
 #include <asm/mediabay.h>
@@ -310,9 +309,7 @@ static void __init pmac_setup_arch(void)
        }
 
        /* See if newworld or oldworld */
-       for (ic = NULL; (ic = of_find_all_nodes(ic)) != NULL; )
-               if (of_get_property(ic, "interrupt-controller", NULL))
-                       break;
+       ic = of_find_node_with_property(NULL, "interrupt-controller");
        if (ic) {
                pmac_newworld = 1;
                of_node_put(ic);
@@ -740,11 +737,6 @@ define_machine(powermac) {
        .pci_probe_mode         = pmac_pci_probe_mode,
        .power_save             = power4_idle,
        .enable_pmcs            = power4_enable_pmcs,
-#ifdef CONFIG_KEXEC
-       .machine_kexec          = default_machine_kexec,
-       .machine_kexec_prepare  = default_machine_kexec_prepare,
-       .machine_crash_shutdown = default_machine_crash_shutdown,
-#endif
 #endif /* CONFIG_PPC64 */
 #ifdef CONFIG_PPC32
        .pcibios_enable_device_hook = pmac_pci_enable_device_hook,
@@ -754,4 +746,7 @@ define_machine(powermac) {
 #if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC64)
        .cpu_die                = pmac_cpu_die,
 #endif
+#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32)
+       .cpu_die                = generic_mach_cpu_die,
+#endif
 };