Skip to content
Snippets Groups Projects
Commit d26ad457 authored by Dmitry Osipenko's avatar Dmitry Osipenko
Browse files

x86/platform/intel-mid: Use register_platform_power_off()


Utilize new register_platform_power_off() API that allows to register
multiple power-off handlers and deprecates global pm_power_off callback.

Signed-off-by: default avatarDmitry Osipenko <dmitry.osipenko@collabora.com>
parent bbccd706
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/reboot.h>
#include <linux/regulator/machine.h>
#include <linux/scatterlist.h>
#include <linux/irq.h>
......@@ -114,7 +115,7 @@ void __init x86_intel_mid_early_setup(void)
*/
x86_init.acpi.reduced_hw_early_init = x86_init_noop;
pm_power_off = intel_mid_power_off;
register_platform_power_off(intel_mid_power_off);
machine_ops.emergency_restart = intel_mid_reboot;
/* Avoid searching for BIOS MP tables */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment