No users of pm_power_off are left, so it is safe to remove the function. Cc: Rafael J. Wysocki <r...@rjwysocki.net> Cc: Pavel Machek <pa...@ucw.cz> Cc: Len Brown <len.br...@intel.com> Acked-by: Rafael J. Wysocki <r...@rjwysocki.net> Signed-off-by: Guenter Roeck <li...@roeck-us.net> --- v2: poweroff -> power_off
include/linux/pm.h | 1 - kernel/power/poweroff_handler.c | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/linux/pm.h b/include/linux/pm.h index 7e0cb36..316271d 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -31,7 +31,6 @@ /* * Callbacks for platform drivers to implement. */ -extern void (*pm_power_off)(void); extern void (*pm_power_off_prepare)(void); /* diff --git a/kernel/power/poweroff_handler.c b/kernel/power/poweroff_handler.c index 37f0b88..d2d164e 100644 --- a/kernel/power/poweroff_handler.c +++ b/kernel/power/poweroff_handler.c @@ -22,12 +22,6 @@ #include <linux/types.h> /* - * If set, calling this function will power off the system immediately. - */ -void (*pm_power_off)(void); -EXPORT_SYMBOL(pm_power_off); - -/* * Notifier list for kernel code which wants to be called * to power off the system. */ @@ -242,8 +236,6 @@ EXPORT_SYMBOL(devm_register_power_off_handler); void do_kernel_power_off(void) { spin_lock(&power_off_handler_lock); - if (pm_power_off) - pm_power_off(); raw_notifier_call_chain(&power_off_handler_list, 0, NULL); spin_unlock(&power_off_handler_lock); } @@ -255,6 +247,6 @@ void do_kernel_power_off(void) */ bool have_kernel_power_off(void) { - return pm_power_off != NULL || power_off_handler_list.head != NULL; + return power_off_handler_list.head != NULL; } EXPORT_SYMBOL(have_kernel_power_off); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/