Commit 1794ec1f authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki

PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus()

We are returning 0 even in case of errors, fix it.

Fixes: 8d4d4e98 ("PM / OPP: Add helpers for initializing CPU OPPs")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Cc: 4.3 <stable@vger.kernel.org> # 4.3
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ad623c31
...@@ -156,7 +156,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) ...@@ -156,7 +156,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
out_rcu_read_unlock: out_rcu_read_unlock:
rcu_read_unlock(); rcu_read_unlock();
return 0; return ret;
} }
EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus); EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment