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

Commit e231f8d7 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

PM / OPP: Don't WARN on multiple calls to dev_pm_opp_set_regulators()



If a platform specific OPP driver has called this routine first and set
the regulators, then the second call from cpufreq-dt driver will hit the
WARN_ON(). Remove the WARN_ON(), but continue to return error in such
cases.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Tested-by: default avatarDave Gerlach <d-gerlach@ti.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 4dab160e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1485,7 +1485,7 @@ struct opp_table *dev_pm_opp_set_regulators(struct device *dev,
	}

	/* Already have regulators set */
	if (WARN_ON(opp_table->regulators)) {
	if (opp_table->regulators) {
		ret = -EBUSY;
		goto err;
	}