Skip to content

Commit 9b0d0af

Browse files
digetxrafaeljw
authored andcommitted
sh: Use do_kernel_power_off()
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new sys-off API. Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f0f7e52 commit 9b0d0af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/sh/kernel/reboot.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ static void native_machine_shutdown(void)
4646

4747
static void native_machine_power_off(void)
4848
{
49-
if (pm_power_off)
50-
pm_power_off();
49+
do_kernel_power_off();
5150
}
5251

5352
static void native_machine_halt(void)

0 commit comments

Comments
 (0)