PM / Domain: Return 0 on error from of_genpd_opp_to_performance_state()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 24 May 2018 10:32:40 +0000 (16:02 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 May 2018 17:08:14 +0000 (19:08 +0200)
commit9ad14c001651955ebc390a5bb56858b0ee27ec2d
tree1f179a0171b24a3c84ab89c388a48fff09877d91
parente008690e4e921d1acf3c3a2397efe460b5abee01
PM / Domain: Return 0 on error from of_genpd_opp_to_performance_state()

of_genpd_opp_to_performance_state() should return 0 on errors, as its
doc comment describes. While it follows that mostly, it returns a
negative error number on one of the failures.

Fix that.

Fixes: 6e41766a6a50 "PM / Domain: Implement of_genpd_opp_to_performance_state()"
Reported-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c