Skip to content

Commit

Permalink
mfd: Release arizona DCVDD if we fail to resume the device
Browse files Browse the repository at this point in the history
Ensures we don't leak the enable we just did.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jul 8, 2012
1 parent de22333 commit 5879f57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/mfd/arizona-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ static int arizona_runtime_resume(struct device *dev)
regcache_cache_only(arizona->regmap, false);

ret = arizona_wait_for_boot(arizona);
if (ret != 0)
if (ret != 0) {
regulator_disable(arizona->dcvdd);
return ret;
}

regcache_sync(arizona->regmap);

Expand Down

0 comments on commit 5879f57

Please sign in to comment.