]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: Simplify regulator_bulk_get and regulator_bulk_enable error paths
authorAxel Lin <axel.lin@gmail.com>
Mon, 20 Feb 2012 02:32:16 +0000 (10:32 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 20 Feb 2012 02:50:21 +0000 (18:50 -0800)
commitb29c7690a764b9829b1034f873f97b7bbfa19565
treed77789334e777bb67a429f0a69024cec4bb64906
parentfde297bb4d8075229b8985e9d4f96d32339a8e68
regulator: Simplify regulator_bulk_get and regulator_bulk_enable error paths

Start unwind from the point the error happens instead of iterating over all
consumers, then unwind code can be simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c