regmap: Implement managed regmap_init()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Jan 2012 19:56:52 +0000 (19:56 +0000)
committerLokesh Pathak <lpathak@nvidia.com>
Mon, 5 Mar 2012 15:59:27 +0000 (07:59 -0800)
commitafb74b6de29f8219824b93c3743b418a66df494a
tree6d8a858f83e149731e6e5afc6431cf59433e7b76
parent096f635bbc06c97e90b70e1722f05ec1facfb622
regmap: Implement managed regmap_init()

Save error handling and unwinding code in drivers by providing managed
versions of the regmap init functions, simplifying usage.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit c0eb46766d395da8d62148bda2e59bad5e6ee2f2)

Change-Id: I6df96ae10ad8a882feb7da908dd46c2f56a28f9f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87585
drivers/base/regmap/regmap-i2c.c
drivers/base/regmap/regmap-spi.c
drivers/base/regmap/regmap.c
include/linux/regmap.h