Commit 09f662f9 authored by Viresh Kumar's avatar Viresh Kumar

OPP: Return error on error from dev_pm_opp_get_opp_count()

Return error number instead of 0 on failures.

Fixes: a1e8c136 ("PM / OPP: "opp-hz" is optional for power domains")
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 50b6b87c
...@@ -318,7 +318,7 @@ int dev_pm_opp_get_opp_count(struct device *dev) ...@@ -318,7 +318,7 @@ int dev_pm_opp_get_opp_count(struct device *dev)
count = PTR_ERR(opp_table); count = PTR_ERR(opp_table);
dev_dbg(dev, "%s: OPP table not found (%d)\n", dev_dbg(dev, "%s: OPP table not found (%d)\n",
__func__, count); __func__, count);
return 0; return count;
} }
count = _get_opp_count(opp_table); count = _get_opp_count(opp_table);
......
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