diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-02-18 01:05:30 -0500 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-03-16 14:58:19 +0100 |
commit | 84f9532fa92ab2f82e5eb0089d1ee5693f56753f (patch) | |
tree | 8f8dfe85601ee90d4e132b0535dd7071623c7ebe | |
parent | 365302800a2667d7a1a1ed54bc691e65c6b8e4b9 (diff) |
drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh
commit 3d2d98ee1af0cf6eebfbd6bff4c17d3601ac1284 upstream.
Just in case it hasn't been calculated for the mode.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-rw-r--r-- | drivers/gpu/drm/radeon/r600_dpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c index cc4258a853fd..729ad831886f 100644 --- a/drivers/gpu/drm/radeon/r600_dpm.c +++ b/drivers/gpu/drm/radeon/r600_dpm.c @@ -187,7 +187,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; } } |