Don't send -EINVAL and propagate what's received from _find_opp_table().
Signed-off-by: Viresh Kumar <[email protected]>
---
drivers/base/power/opp/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c
index ba2bdbd932ef..b7411a3cdcb1 100644
--- a/drivers/base/power/opp/cpu.c
+++ b/drivers/base/power/opp/cpu.c
@@ -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);
if (IS_ERR(opp_table)) {
- ret = -EINVAL;
+ ret = PTR_ERR(opp_table);
goto unlock;
}
--
2.7.1.410.g6faf27b
On 04/21, Viresh Kumar wrote:
> Don't send -EINVAL and propagate what's received from _find_opp_table().
>
> Signed-off-by: Viresh Kumar <[email protected]>
> ---
Reviewed-by: Stephen Boyd <[email protected]>
--
X-Patchwork-State: Not Applicable
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project