From: Dmitry Osipenko Date: Mon, 9 May 2022 23:32:25 +0000 (+0300) Subject: sh: Use do_kernel_power_off() X-Git-Tag: v6.6.17~7394^2^2~2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b0d0af145195cfd79210b805448a4bcc69f0e04;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Dmitry Osipenko Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/sh/kernel/reboot.c b/arch/sh/kernel/reboot.c index 5c33f03..e8eeedc 100644 --- a/arch/sh/kernel/reboot.c +++ b/arch/sh/kernel/reboot.c @@ -46,8 +46,7 @@ static void native_machine_shutdown(void) static void native_machine_power_off(void) { - if (pm_power_off) - pm_power_off(); + do_kernel_power_off(); } static void native_machine_halt(void)