power/restart: Call machine_restart instead of arm_pm_restart
RFC PATCH 1/1 power/restart: Call machine_restart instead of arm_pm_restart
machine_restart is supported on non-ARM platforms, and ultimately calls arm_pm_restart, so dont call arm_pm_restart directly but use the more generic function.
Cc Russell King <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- drivers/power/reset/restart-poweroff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/power/reset/restart-poweroff.c +2 -1
@@ -20,7 +20,8 @@static void restart_poweroff_do_poweroff (void ) { -arm_pm_restart (REBOOT_HARD ,NULL ); + reboot_mode =REBOOT_HARD ; +machine_restart (NULL ); }static int restart_poweroff_probe (struct platform_device *pdev)
Signature · 1 line
1.9.1