Skip to contentSkip to conversation

power/restart: Call machine_restart instead of arm_pm_restart

RFC PATCH New Guenter Roeck 1 participant 1 message Jul 1, 2014 System reset/shutdown drivers

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/power/reset/restart-poweroff.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/power/reset/restart-poweroff.c +2 -1
index 5758033..47f10eb 100644
@@ -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