提交 156a537d 编写于 作者: J Jordan Crouse 提交者: Rob Clark

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: NJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: NRob Clark <robdclark@gmail.com>
上级 aa2a2ab7
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册