Dmitry Osipenko f0f7e5265b m68k: Switch to new sys-off handler API
Kernel now supports chained power-off handlers. Use
register_power_off_handler() that registers power-off handlers and
do_kernel_power_off() that invokes chained power-off handlers. Legacy
pm_power_off() will be removed once all drivers will be converted to
the new sys-off API.

Normally arch code should adopt only the do_kernel_power_off() at first,
but m68k is a special case because it uses pm_power_off() "inside out",
i.e. pm_power_off() invokes machine_power_off() [in fact it does nothing],
while it's machine_power_off() that should invoke the pm_power_off(), and
thus, we can't convert platforms to the new API separately. There are only
two platforms changed here, so it's not a big deal.

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
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>
2022-05-19 19:30:30 +02:00
..
2022-02-21 12:00:20 +01:00
2022-02-21 12:00:20 +01:00
2022-03-21 16:48:55 -07:00
2022-03-21 16:48:55 -07:00
2022-03-22 10:29:51 -07:00
2022-02-21 12:00:20 +01:00
2022-03-21 16:48:55 -07:00
2022-03-21 16:48:55 -07:00
2022-02-21 12:00:20 +01:00
2021-09-24 13:35:07 +02:00
2021-09-24 13:35:07 +02:00
2022-03-21 19:32:04 -07:00
2022-02-25 09:36:05 +01:00
2020-03-09 11:12:19 +01:00