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

powerpc/pseries: 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 653057fa
No related branches found
No related tags found
No related merge requests found
...@@ -1056,7 +1056,7 @@ static int __init pSeries_probe(void) ...@@ -1056,7 +1056,7 @@ static int __init pSeries_probe(void)
of_machine_is_compatible("IBM,CBEA")) of_machine_is_compatible("IBM,CBEA"))
return 0; return 0;
pm_power_off = pseries_power_off; register_platform_power_off(pseries_power_off);
pr_debug("Machine is%s LPAR !\n", pr_debug("Machine is%s LPAR !\n",
(powerpc_firmware_features & FW_FEATURE_LPAR) ? "" : " not"); (powerpc_firmware_features & FW_FEATURE_LPAR) ? "" : " not");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment