power: reset: reboot-mode: Add managed resource API
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 4 Aug 2016 05:04:05 +0000 (22:04 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 22:29:22 +0000 (00:29 +0200)
commitc1a9634f1aaf5e10c23f8890ea2e64c61d48cb44
tree0343e34cde7460534ec10e47bc3c38eefff8d9a3
parent957cb720518341abf19009044f240a6342bdd039
power: reset: reboot-mode: Add managed resource API

Provide managed resource version of reboot_mode_register() and
reboot_mode_unregister() to simplify implementations.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/driver-model/devres.txt
drivers/power/reset/reboot-mode.c
drivers/power/reset/reboot-mode.h