mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 03:40:04 +00:00
PM / OPP: Propagate the error returned by _find_opp_table()
Don't send -EINVAL and propagate what's received from _find_opp_table(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
02da2d7217
commit
2d74c6d565
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
|
||||||
|
|
||||||
opp_table = _find_opp_table(cpu_dev);
|
opp_table = _find_opp_table(cpu_dev);
|
||||||
if (IS_ERR(opp_table)) {
|
if (IS_ERR(opp_table)) {
|
||||||
ret = -EINVAL;
|
ret = PTR_ERR(opp_table);
|
||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue