diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2017-11-21 12:40:52 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-01-10 08:58:41 -0500 |
commit | 156a537d056aa9057d1e2d94e5a81505580000bd (patch) | |
tree | afdc75c47e50244c0129faea14bea8ad11275e13 /drivers/gpu/drm/msm/adreno | |
parent | aa2a2ab7b714f7b2de3849ca3379818ae15f476b (diff) | |
download | op-kernel-dev-156a537d056aa9057d1e2d94e5a81505580000bd.zip op-kernel-dev-156a537d056aa9057d1e2d94e5a81505580000bd.tar.gz |
drm/msm/adreno: Remove a useless call to dev_pm_opp_get_freq()
Calling dev_pm_opp_find_freq_floor() returns the matched frequency
in 'freq'. We don't need to call dev_pm_opp_get_freq() again
to get the frequency value.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index 5845e43..deda55e 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_device.c +++ b/drivers/gpu/drm/msm/adreno/adreno_device.c @@ -248,7 +248,7 @@ 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)) { - config->fast_rate = dev_pm_opp_get_freq(opp); + config->fast_rate = freq; dev_pm_opp_put(opp); } |