summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/reboot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/reboot.c b/kernel/reboot.c
index 892d25aa12df..7723aff4d09b 100644
--- a/kernel/reboot.c
+++ b/kernel/reboot.c
@@ -58,6 +58,12 @@ struct sys_off_handler {
};
/*
+ * Temporary stub that prevents linkage failure while we're in process
+ * of removing all uses of legacy pm_power_off() around the kernel.
+ */
+void __weak (*pm_power_off)(void);
+
+/*
* If set, this is used for preparing the system to power off.
*/