]> asedeno.scripts.mit.edu Git - linux.git/commit
power/reset: xgene: Register with kernel restart handler
authorGuenter Roeck <linux@roeck-us.net>
Tue, 30 Sep 2014 17:48:32 +0000 (10:48 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 17 Nov 2014 02:07:09 +0000 (03:07 +0100)
commit8f57f2310f6b5f787a29e4eb440afd8b3f6b2554
tree3798effb74187f9c7814525b73bd406e08d5c618
parent745e19764a0cff55a55010cfabe7e9ff77fa72a5
power/reset: xgene: Register with kernel restart handler

Register with kernel restart handler instead of setting arm_pm_restart directly.

This patch also addresses the following compile warning.

drivers/power/reset/xgene-reboot.c: In function 'xgene_reboot_probe':
drivers/power/reset/xgene-reboot.c:77:17: warning:
assignment from incompatible pointer type [enabled by default]

The warning was due to a mismatch between the type of arm_pm_restart
and the restart function.

Cc: Loc Ho <lho@apm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/power/reset/xgene-reboot.c