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

Commit 08ccdd78 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "regulator: msm-gfx-ldo: Disable CX only in the error path"

parents 5dc9613f 52b4c8ed
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -365,9 +365,11 @@ static int msm_gfx_ldo_enable(struct regulator_dev *rdev)
	ldo_vreg->vreg_enabled = true;

disable_cx:
	if (rc && ldo_vreg->vdd_cx) {
		rc = regulator_disable(ldo_vreg->vdd_cx);
		if (rc)
			pr_err("regulator_enable: vdd_cx: failed rc=%d\n", rc);
	}
fail:
	mutex_unlock(&ldo_vreg->ldo_mutex);
	return rc;