]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / OPP: Don't WARN on multiple calls to dev_pm_opp_set_regulators()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 1 Dec 2016 10:58:22 +0000 (16:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 Dec 2016 01:28:00 +0000 (02:28 +0100)
commite231f8d7ed9a01280d18cd897ae0bbb4118bc954
treee78f2a46fce1083580e46a3fb1c52fb28015d714
parent4dab160eb1586f67e8ba7c55ffdd2373f7a5553e
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: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c