From: Alex Deucher Date: Wed, 18 Feb 2015 06:05:30 +0000 (-0500) Subject: drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh X-Git-Tag: MMI-PSA29.97-13-9~10531^2~2^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d2d98ee1af0cf6eebfbd6bff4c17d3601ac1284;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh Just in case it hasn't been calculated for the mode. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index 843b65f46ece..fa2154493cf1 100644 --- a/drivers/gpu/drm/radeon/r600_dpm.c +++ b/drivers/gpu/drm/radeon/r600_dpm.c @@ -188,7 +188,7 @@ u32 r600_dpm_get_vrefresh(struct radeon_device *rdev) list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { radeon_crtc = to_radeon_crtc(crtc); if (crtc->enabled && radeon_crtc->enabled && radeon_crtc->hw_mode.clock) { - vrefresh = radeon_crtc->hw_mode.vrefresh; + vrefresh = drm_mode_vrefresh(&radeon_crtc->hw_mode); break; } }