1
0
Fork 0

PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus()

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

Fixes: 8d4d4e98ac ("PM / OPP: Add helpers for initializing CPU OPPs")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.3 <stable@vger.kernel.org> # 4.3
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
hifive-unleashed-5.1
Viresh Kumar 2015-11-05 14:21:18 +05:30 committed by Rafael J. Wysocki
parent ad623c3148
commit 1794ec1f95
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
out_rcu_read_unlock:
rcu_read_unlock();
return 0;
return ret;
}
EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus);