@@ -32,7 +32,6 @@
* Callbacks for platform drivers to implement.
*/
extern void (*pm_power_off)(void);
-extern void (*pm_power_off_prepare)(void);
struct device; /* we have a circular dep with device.h */
#ifdef CONFIG_VT_CONSOLE_SLEEP
@@ -44,12 +44,6 @@
enum reboot_type reboot_type = BOOT_ACPI;
int reboot_force;
-/*
- * If set, this is used for preparing the system to power off.
- */
-
-void (*pm_power_off_prepare)(void);
-
/**
* emergency_restart - reboot the system
*
@@ -284,8 +278,6 @@ void kernel_halt(void)
void kernel_power_off(void)
{
kernel_shutdown_prepare(SYSTEM_POWER_OFF);
- if (pm_power_off_prepare)
- pm_power_off_prepare();
migrate_to_reboot_cpu();
syscore_shutdown();
pr_emerg("Power down\n");
There are no users will prepare to power off system by 'pm_power_off_prepare' hook, thus we can remove it now. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> --- include/linux/pm.h | 1 - kernel/reboot.c | 8 -------- 2 files changed, 9 deletions(-)