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

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

Merge "drm/msm/dsi-staging: add regulator name to error log"

parents 6092cbd5 003a8590
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -341,6 +341,11 @@ int dsi_pwr_enable_regulator(struct dsi_regulator_info *regs, bool enable)
{
	int rc = 0;

	if (!regs->vregs) {
		pr_err("Invalid params\n");
		return -EINVAL;
	}

	if (enable) {
		if (regs->refcount == 0) {
			rc = dsi_pwr_enable_vregs(regs, true);
@@ -350,7 +355,8 @@ int dsi_pwr_enable_regulator(struct dsi_regulator_info *regs, bool enable)
		regs->refcount++;
	} else {
		if (regs->refcount == 0) {
			pr_err("Unbalanced regulator off\n");
			pr_err("Unbalanced regulator off:%s\n",
					regs->vregs->vreg_name);
		} else {
			regs->refcount--;
			if (regs->refcount == 0) {