From: Lars-Peter Clausen Date: Tue, 15 Dec 2009 13:30:01 +0000 (+0100) Subject: regulator: Fix unbalanced disables/enables in regulator_bulk_{enable,disable} error... X-Git-Tag: v2.6.33-rc1~36^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb143ac1b9f56ca9c6dc782d795acda1f60c5fd2;p=pandora-kernel.git regulator: Fix unbalanced disables/enables in regulator_bulk_{enable,disable} error path Currently it is possible for regulator_bulk_{enable,disable} operations to generate unbalanced regulator_{disable,enable} calls in its error path. In case of an error only those regulators of the bulk operation which actually had been enabled/disabled should get their original state restored. Signed-off-by: Lars-Peter Clausen Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed