mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
mfd: Release arizona DCVDD if we fail to resume the device
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>
This commit is contained in:
parent
de2233365d
commit
5879f5710e
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue