power/reset: keystone: Register with kernel restart handler
authorGuenter Roeck <linux@roeck-us.net>
Tue, 30 Sep 2014 17:48:34 +0000 (10:48 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 17 Nov 2014 02:07:10 +0000 (03:07 +0100)
commitf59a42d4e177564b9892112af7a4e73d0c91f9b4
treea89118ebc730e4a4b053d2de76dee1a563eefa18
parentfcf01c51f0f5565a184638b7d055e590aad6c0f8
power/reset: keystone: Register with kernel restart handler

Register with kernel restart handler instead of setting arm_pm_restart directly.

Move notifier registration to the end of the probe function to avoid having to
implement error handling.

Cc: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/power/reset/keystone-reset.c