power/reset: st-poweroff: Register with kernel restart handler
authorGuenter Roeck <linux@roeck-us.net>
Sun, 25 Jan 2015 20:30:43 +0000 (12:30 -0800)
committerSebastian Reichel <sre@kernel.org>
Sun, 25 Jan 2015 21:13:16 +0000 (22:13 +0100)
commit453fe4f11c2ac18b654db13daeaa71409ef142e0
tree45bcee41954aca628fd317f10469545d7025ed21
parentb2b3a8b934e649d0f0659584f2186602dbb391b5
power/reset: st-poweroff: Register with kernel restart handler

Register with kernel restart handler instead of setting arm_pm_restart
directly. Select high priority since the restart handler is instantiated
through devicetree, indicating that it should be used if configured.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/st-poweroff.c