powerpc/kexec: Don't initialise kexec hooks to default handlers
authorAnton Blanchard <anton@samba.org>
Thu, 6 Jan 2011 17:57:03 +0000 (17:57 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 Jan 2011 03:08:35 +0000 (14:08 +1100)
There's no need to initialise ppc_md.machine_kexec and
ppc_md.machine_kexec_prepare to the default handlers.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/qpace_setup.c
arch/powerpc/platforms/pseries/kexec.c

index 7970eec4c3a2fc528472dd161b7f427831868140..d31c594cfdf3ee68d84b7f7fa4603cc8bd7c7ab4 100644 (file)
@@ -145,8 +145,4 @@ define_machine(qpace) {
        .calibrate_decr         = generic_calibrate_decr,
        .progress               = qpace_progress,
        .init_IRQ               = iic_init_IRQ,
-#ifdef CONFIG_KEXEC
-       .machine_kexec          = default_machine_kexec,
-       .machine_kexec_prepare  = default_machine_kexec_prepare,
-#endif
 };
index 3d627926722105811e92d745e6b8193aaa672d14..77d38a5e2ff98b1a953088ca282b4986c1d046ec 100644 (file)
@@ -61,12 +61,3 @@ void __init setup_kexec_cpu_down_xics(void)
 {
        ppc_md.kexec_cpu_down = pseries_kexec_cpu_down_xics;
 }
-
-static int __init pseries_kexec_setup(void)
-{
-       ppc_md.machine_kexec = default_machine_kexec;
-       ppc_md.machine_kexec_prepare = default_machine_kexec_prepare;
-
-       return 0;
-}
-machine_device_initcall(pseries, pseries_kexec_setup);