diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-10-03 15:22:03 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2018-10-04 09:10:56 +0530 |
commit | 09f662f95306f3e3d47ab6842bc4b0bb868a80ad (patch) | |
tree | 105022d7562edbd348cb9c16e4ada7bcf18dff0d /drivers/opp | |
parent | 50b6b87c8484da8bb5dcce00f84ec80aee8fc2bd (diff) | |
download | lwn-09f662f95306f3e3d47ab6842bc4b0bb868a80ad.tar.gz lwn-09f662f95306f3e3d47ab6842bc4b0bb868a80ad.zip |
OPP: Return error on error from dev_pm_opp_get_opp_count()
Return error number instead of 0 on failures.
Fixes: a1e8c13600bf ("PM / OPP: "opp-hz" is optional for power domains")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp')
-rw-r--r-- | drivers/opp/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index cdf918aaac34..2c2df4e4fc14 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -318,7 +318,7 @@ int dev_pm_opp_get_opp_count(struct device *dev) count = PTR_ERR(opp_table); dev_dbg(dev, "%s: OPP table not found (%d)\n", __func__, count); - return 0; + return count; } count = _get_opp_count(opp_table); |