powerpc/kexec: Remove empty ppc_md.machine_kexec_prepare
We check for a valid handler before calling ppc_md.machine_kexec_prepare so we can just remove these empty handlers. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
2bb44d628c
commit
c6baabfb84
@@ -75,14 +75,6 @@ static void gamecube_shutdown(void)
|
|||||||
flipper_quiesce();
|
flipper_quiesce();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_KEXEC
|
|
||||||
static int gamecube_kexec_prepare(struct kimage *image)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_KEXEC */
|
|
||||||
|
|
||||||
|
|
||||||
define_machine(gamecube) {
|
define_machine(gamecube) {
|
||||||
.name = "gamecube",
|
.name = "gamecube",
|
||||||
.probe = gamecube_probe,
|
.probe = gamecube_probe,
|
||||||
@@ -95,9 +87,6 @@ define_machine(gamecube) {
|
|||||||
.calibrate_decr = generic_calibrate_decr,
|
.calibrate_decr = generic_calibrate_decr,
|
||||||
.progress = udbg_progress,
|
.progress = udbg_progress,
|
||||||
.machine_shutdown = gamecube_shutdown,
|
.machine_shutdown = gamecube_shutdown,
|
||||||
#ifdef CONFIG_KEXEC
|
|
||||||
.machine_kexec_prepare = gamecube_kexec_prepare,
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -18,7 +18,6 @@
|
|||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
#include <linux/seq_file.h>
|
#include <linux/seq_file.h>
|
||||||
#include <linux/kexec.h>
|
|
||||||
#include <linux/of_platform.h>
|
#include <linux/of_platform.h>
|
||||||
#include <linux/memblock.h>
|
#include <linux/memblock.h>
|
||||||
#include <mm/mmu_decl.h>
|
#include <mm/mmu_decl.h>
|
||||||
@@ -226,13 +225,6 @@ static void wii_shutdown(void)
|
|||||||
flipper_quiesce();
|
flipper_quiesce();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_KEXEC
|
|
||||||
static int wii_machine_kexec_prepare(struct kimage *image)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_KEXEC */
|
|
||||||
|
|
||||||
define_machine(wii) {
|
define_machine(wii) {
|
||||||
.name = "wii",
|
.name = "wii",
|
||||||
.probe = wii_probe,
|
.probe = wii_probe,
|
||||||
@@ -246,9 +238,6 @@ define_machine(wii) {
|
|||||||
.calibrate_decr = generic_calibrate_decr,
|
.calibrate_decr = generic_calibrate_decr,
|
||||||
.progress = udbg_progress,
|
.progress = udbg_progress,
|
||||||
.machine_shutdown = wii_shutdown,
|
.machine_shutdown = wii_shutdown,
|
||||||
#ifdef CONFIG_KEXEC
|
|
||||||
.machine_kexec_prepare = wii_machine_kexec_prepare,
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct of_device_id wii_of_bus[] = {
|
static struct of_device_id wii_of_bus[] = {
|
||||||
|
Reference in New Issue
Block a user