diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2017-11-21 12:40:51 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-01-10 08:58:41 -0500 |
commit | aa2a2ab7b714f7b2de3849ca3379818ae15f476b (patch) | |
tree | 27757c2ab47aa1b95422ab2ec1cc98f59c54a733 /drivers/gpu/drm/msm/adreno/adreno_device.c | |
parent | 9dcfbc182f1aac0aa5ea194733d21e67dd2ba1fd (diff) | |
download | linux-aa2a2ab7b714f7b2de3849ca3379818ae15f476b.tar.gz linux-aa2a2ab7b714f7b2de3849ca3379818ae15f476b.tar.bz2 linux-aa2a2ab7b714f7b2de3849ca3379818ae15f476b.zip |
drm/msm/adreno: Call dev_pm_opp_put()
We need to call dev_pm_opp_put() to put back the reference
for the OPP struct after calling the various dev_pm_opp_get_*
functions.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/adreno_device.c')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index c30bd24bc92c..5845e43521f7 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_device.c +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c @@ -247,8 +247,10 @@ static int adreno_get_pwrlevels(struct device *dev, /* Find the fastest defined rate */ opp = dev_pm_opp_find_freq_floor(dev, &freq); - if (!IS_ERR(opp)) + if (!IS_ERR(opp)) { config->fast_rate = dev_pm_opp_get_freq(opp); + dev_pm_opp_put(opp); + } if (!config->fast_rate) { DRM_DEV_INFO(dev, |