]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c3942bfe22a82eb8252df89d42b67a0d0b87c89
treea89118ebc730e4a4b053d2de76dee1a563eefa18
parentaf9994f44897820b5287a2881abfb58489d34466
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