Register with kernel restart handler instead of setting arm_pm_restart
directly. By doing this, the prima2 reset handler can be prioritized
among other restart methods available on a particular board.
Select a high priority of 192 since the original code overwrites the
default arm restart handler.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Bug: 163752725
Link: https://lore.kernel.org/lkml/20191015145147.1106247-2-thierry.reding@gmail.com/
Change-Id: I67834fb04f2c7dfae5e098bcf777e0405f2d415a
Signed-off-by: Elliot Berman <eberman@codeaurora.org>