regmap: Implement managed regmap_init()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Jan 2012 19:56:52 +0000 (19:56 +0000)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 21 Mar 2012 05:31:34 +0000 (22:31 -0700)
commit45e65196541a1b50fd214fba303095d24240596b
treefbec4a0bd8504e90c1cddb39bdc49413e574c855
parent953e84aa6a2023aaab27a030b467d436de866ea3
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

Rebase-Id: Rb1406525cbc449bc5a6726b171d0531ef7f3db61
drivers/base/regmap/regmap-i2c.c
drivers/base/regmap/regmap-spi.c
drivers/base/regmap/regmap.c
include/linux/regmap.h