]> git.baikalelectronics.ru Git - kernel.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)
commit32cc9122f4c1182d48446336978b825e00f750de
treed77789334e777bb67a429f0a69024cec4bb64906
parent1d8d5eadcd006321f6d9062566826c8531d332aa
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