[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1404172910-21056-1-git-send-email-linux@roeck-us.net>
Date: Mon, 30 Jun 2014 17:01:50 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
Cc: David Woodhouse <dwmw2@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, Andrew Lunn <andrew@...n.ch>,
Guenter Roeck <linux@...ck-us.net>,
Russell King <linux@....linux.org.uk>
Subject: [RFC PATCH] 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 <linux@....linux.org.uk>
Signed-off-by: Guenter Roeck <linux@...ck-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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists