diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-31 11:58:26 +0100 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-26 19:46:14 -0700 |
commit | dd7025a3a2e78a5bd787dd98a616b090800a8bf2 (patch) | |
tree | 8832a0fa7831e5056e80db3a416ddfaf37451d1d /Documentation/driver-model | |
parent | f214e6ed8484a0b249eaca05977a7acad6822cff (diff) |
regulator: core: Provide managed regulator registration
Many regulator drivers have a remove function that consists solely of
calling regulator_unregister() so provide a devm_regulator_register()
in order to allow this repeated code to be removed and help eliminate
error handling code.
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit b33e46bcdc4e598d738ed12a5a7906be4e11d786)
Change-Id: Ia2e35a18e3e836b1464149de475ad0a755d8fc4d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/276259
Diffstat (limited to 'Documentation/driver-model')
-rw-r--r-- | Documentation/driver-model/devres.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index b4671459857f..c5998313b8ae 100644 --- a/Documentation/driver-model/devres.txt +++ b/Documentation/driver-model/devres.txt @@ -277,6 +277,7 @@ REGULATOR devm_regulator_get() devm_regulator_put() devm_regulator_bulk_get() + devm_regulator_register() CLOCK devm_clk_get() |