* [RFC PATCH] power/restart: Call machine_restart instead of arm_pm_restart
@ 2014-07-01 0:01 Guenter Roeck
0 siblings, 0 replies; only message in thread
From: Guenter Roeck @ 2014-07-01 0:01 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov
Cc: David Woodhouse, Andrew Morton, linux-kernel, Andrew Lunn,
Guenter Roeck, Russell King
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 <linux@arm.linux.org.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/power/reset/restart-poweroff.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/power/reset/restart-poweroff.c b/drivers/power/reset/restart-poweroff.c
index 5758033..47f10eb 100644
--- a/drivers/power/reset/restart-poweroff.c
+++ b/drivers/power/reset/restart-poweroff.c
@@ -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)
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-01 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 0:01 [RFC PATCH] power/restart: Call machine_restart instead of arm_pm_restart Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®