Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5879f571 authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz
Browse files

mfd: Release arizona DCVDD if we fail to resume the device



Ensures we don't leak the enable we just did.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent de223336
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);