regulator: fixed regulator_bulk_enable unwinding code
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 1 Mar 2013 11:24:05 +0000 (12:24 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 1 Mar 2013 12:03:46 +0000 (20:03 +0800)
commitfbe31057fafebdc2811a7101b8b4a0460f5417d1
tree6656af04f0437024f2c8c77eab21aa28d5daa4ab
parent2730fd82cbb922e6be8df08ba32c21be41757d3d
regulator: fixed regulator_bulk_enable unwinding code

Unwinding code disables all successfully enabled regulators.
Error is logged for every failed regulator.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c