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

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

Merge "msm: rpm-regulator-smd: remove incorrect rpm_regulator_get() unlock calls"

parents f9f9e3c4 dfa5d91a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -932,7 +932,6 @@ struct rpm_regulator *rpm_regulator_get(struct device *dev, const char *supply)
	if (priv_reg == NULL) {
		vreg_err(framework_reg, "could not allocate memory for "
			"regulator\n");
		rpm_vreg_unlock(rpm_vreg);
		return ERR_PTR(-ENOMEM);
	}

@@ -945,7 +944,6 @@ struct rpm_regulator *rpm_regulator_get(struct device *dev, const char *supply)
		vreg_err(framework_reg, "could not allocate memory for "
			"regulator_dev\n");
		kfree(priv_reg);
		rpm_vreg_unlock(rpm_vreg);
		return ERR_PTR(-ENOMEM);
	}
	priv_reg->rdev->reg_data	= priv_reg;