OSDN Git Service

powerpc/kexec: Remove ppc_md.machine_kexec_cleanup
authorAnton Blanchard <anton@samba.org>
Thu, 6 Jan 2011 17:54:58 +0000 (17:54 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 Jan 2011 03:08:35 +0000 (14:08 +1100)
No one uses ppc_md.machine_kexec_cleanup, so remove it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/machine_kexec.c

index b2e8d69..67cd82e 100644 (file)
@@ -247,9 +247,6 @@ struct machdep_calls {
         */
        int (*machine_kexec_prepare)(struct kimage *image);
 
-       /* Called to handle any machine specific cleanup on image */
-       void (*machine_kexec_cleanup)(struct kimage *image);
-
        /* Called to perform the _real_ kexec.
         * Do NOT allocate memory or fail here. We are past the point of
         * no return.
index df7e20c..fae6764 100644 (file)
@@ -65,8 +65,6 @@ int machine_kexec_prepare(struct kimage *image)
 
 void machine_kexec_cleanup(struct kimage *image)
 {
-       if (ppc_md.machine_kexec_cleanup)
-               ppc_md.machine_kexec_cleanup(image);
 }
 
 void arch_crash_save_vmcoreinfo(void)