diff --git a/drivers/opp/core.c b/drivers/opp/core.c index f3433bf47b1006b542a4a520e9a3acf68a1ef8c0..1e80f9ec1aa6ac27f8c6d3ee58d1ab93204472e8 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -313,7 +313,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);