]> git.ipfire.org Git - people/ms/linux.git/commitdiff
drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Feb 2015 06:05:30 +0000 (01:05 -0500)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Mar 2015 13:58:19 +0000 (14:58 +0100)
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>
drivers/gpu/drm/radeon/r600_dpm.c

index cc4258a853fd3e0b16e6f6fc4d99f52ea6447f16..729ad831886f56999acc286c14932fbbb6ebba8e 100644 (file)
@@ -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;
                        }
                }