regulator: core: Provide managed regulator registration
authorMark Brown <broonie@linaro.org>
Sat, 31 Aug 2013 10:58:26 +0000 (11:58 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:27:53 +0000 (00:27 +0100)
commitb33e46bcdc4e598d738ed12a5a7906be4e11d786
tree11028144c3d74bc409f014660fe86aaac9600a21
parent41c7a879d1d637c0c9731682a822b1c3162b0764
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>
Documentation/driver-model/devres.txt
drivers/regulator/core.c
include/linux/regulator/driver.h