diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-08-04 07:04:05 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-08-16 00:29:22 +0200 |
commit | c1a9634f1aaf5e10c23f8890ea2e64c61d48cb44 (patch) | |
tree | 0343e34cde7460534ec10e47bc3c38eefff8d9a3 /drivers/power/reset/reboot-mode.h | |
parent | sbs-battery: add ability to get battery capacity (diff) | |
download | linux-c1a9634f1aaf5e10c23f8890ea2e64c61d48cb44.tar.xz linux-c1a9634f1aaf5e10c23f8890ea2e64c61d48cb44.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/power/reset/reboot-mode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/power/reset/reboot-mode.h b/drivers/power/reset/reboot-mode.h index 2491bb71f591..75f7fe5c881f 100644 --- a/drivers/power/reset/reboot-mode.h +++ b/drivers/power/reset/reboot-mode.h @@ -10,5 +10,9 @@ struct reboot_mode_driver { int reboot_mode_register(struct reboot_mode_driver *reboot); int reboot_mode_unregister(struct reboot_mode_driver *reboot); +int devm_reboot_mode_register(struct device *dev, + struct reboot_mode_driver *reboot); +void devm_reboot_mode_unregister(struct device *dev, + struct reboot_mode_driver *reboot); #endif |