Browse Source

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>
Jordan Crouse 7 years ago
parent
commit
156a537d05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/msm/adreno/adreno_device.c

+ 1 - 1
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 */
 	/* Find the fastest defined rate */
 	opp = dev_pm_opp_find_freq_floor(dev, &freq);
 	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);
+		config->fast_rate = freq;
 		dev_pm_opp_put(opp);
 		dev_pm_opp_put(opp);
 	}
 	}