summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-17regulator: core: Split devres code out into a separate fileMark Brown4-252/+292
Cut down on the size of core.c a bit more and ensure that the devres versions of things don't do too much peering inside the internals of the APIs they wrap. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: core: Refactor devm_regulator_get* APIsAxel Lin1-65/+62
The implementation of devm_regulator_get, devm_regulator_get_exclusive and devm_regulator_get_optional are almost the same. Introduce _devm_regulator_get helper function and refactor the code. Also move devm_regulator_get_exclusive to proper place, put it after regulator_get_exclusive() function. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: palmas: Drop regulator_unregister while using devm_regulator_registerAxel Lin1-3/+1
Commmit af40a94aba "regulator: palmas: Use devm_regulator_register" missed removing a regulator_unregister() call if palmas_extreg_init falis. Fix it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: Remove redundant NULL assignmentSachin Kamat3-3/+0
NULL assignment corrupts the error pointer and is not necessary. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: core: Fix a trivial typoSachin Kamat1-1/+1
Changed automaticall -> automatically. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps80031: Use devm_regulator_registerSachin Kamat1-25/+5
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps65912: Use devm_regulator_registerSachin Kamat1-20/+4
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps65910: Use devm_regulator_registerSachin Kamat1-20/+3
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps6586x: Use devm_regulator_registerSachin Kamat1-25/+6
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps65217: Use devm_regulator_registerSachin Kamat1-22/+4
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps65090: Use devm_regulator_registerSachin Kamat1-30/+5
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps6507x: Use devm_regulator_registerSachin Kamat1-20/+3
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps65023: Use devm_regulator_registerSachin Kamat1-19/+3
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps62360: Use devm_regulator_registerSachin Kamat1-16/+1
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: tps51632: Use devm_regulator_registerSachin Kamat1-10/+1
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: ti-abb: Use devm_regulator_registerSachin Kamat1-57/+22
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: rc5t583: Use devm_regulator_registerSachin Kamat1-20/+2
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: palmas: Use devm_regulator_registerSachin Kamat1-27/+11
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: mc13892: Use devm_regulator_registerSachin Kamat1-19/+3
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: mc13783: Use devm_regulator_registerSachin Kamat1-21/+4
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: isl6271a-regulator: Use devm_regulator_registerSachin Kamat1-20/+4
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: anatop-regulator: Use devm_regulator_registerSachin Kamat1-2/+1
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max8998: Use devm_regulator_registerSachin Kamat1-27/+8
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max8997: Use devm_regulator_registerSachin Kamat1-28/+10
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max8973-regulator: Use devm_regulator_registerSachin Kamat1-10/+1
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max8907-regulator: Use devm_regulator_registerSachin Kamat1-20/+3
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max8660: Use devm_regulator_registerSachin Kamat1-23/+7
devm_* simplifies the code. [Fixups from rebase onto v3.12 code -- broonie] Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max8649: Use devm_regulator_registerSachin Kamat1-12/+2
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max77693: Use devm_regulator_registerSachin Kamat1-24/+4
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max1586: Use devm_regulator_registerSachin Kamat1-21/+5
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: max77686: Use devm_regulator_registerSachin Kamat1-19/+3
devm_* simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: s2mps11: Use devm_regulator_registerSachin Kamat1-1/+2
Commit e398b51a ("regulator: s2mps11: Convert to devm_regulator_register()") intended to do this conversion. However the actual conversion to devm_* got missed out. Fix this. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: fan53555: Convert to devm_regulator_registerAxel Lin1-11/+1
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: da9055: Convert to devm_regulator_registerAxel Lin1-19/+5
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: da9052: Convert to devm_regulator_registerAxel Lin1-11/+3
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: da903x: Convert to devm_regulator_registerAxel Lin1-10/+1
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: as3711: Convert to devm_regulator_registerAxel Lin1-20/+2
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: ad5398: Convert to devm_regulator_registerAxel Lin1-16/+3
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: aat2870: Convert to devm_regulator_registerAxel Lin1-10/+1
Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Jinyoung Park <jinyoungp@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: 88pm8607: Convert to devm_regulator_registerAxel Lin1-10/+2
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: wm8994: Convert to devm_regulator_registerMark Brown1-11/+3
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: wm8400: Convert to devm_regulator_register()Mark Brown1-11/+2
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: wm8350: Convert to devm_regulator_register()Mark Brown1-4/+2
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: wm831x-ldo: Convert to devm_regulator_register()Mark Brown1-39/+8
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: wm831x-isink: Convert to devm_regulator_register()Mark Brown1-14/+3
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: wm831x-dcdc: Convert to devm_regulator_register()Mark Brown1-54/+12
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: s5m8767: Covert to devm_regulator_register()Mark Brown1-21/+3
Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Sangbeom Kim <sbkim73@samsung.com>
2013-09-17regulator: s2mps11: Convert to devm_regulator_register()Mark Brown1-19/+1
Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Sangbeom Kim <sbkim73@samsung.com>
2013-09-17regulator: arizona-micsupp: Convert to devm_regulator_register()Mark Brown1-11/+3
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-17regulator: arizona-ldo1: Convert to devm_regulator_register()Mark Brown1-11/+1
Signed-off-by: Mark Brown <broonie@linaro.org>