drm/amdgpu: use drm_mode_vrefresh() rather than mode->vrefresh
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 14:24:41 +0000 (10:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:31:02 +0000 (20:31 -0400)
This is a port of radeon commit:
3d2d98ee1af0cf6eebfbd6bff4c17d3601ac1284
drm/radeon: use drm_mode_vrefresh() rather than mode->vrefresh
to amdgpu.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c

index 7b7f4aba60c0363e2682a9f674661f5fc6cf420f..fe36caf1b7d7b084762d19fb7fa6516a42dd3fa3 100644 (file)
@@ -150,7 +150,7 @@ u32 amdgpu_dpm_get_vrefresh(struct amdgpu_device *adev)
                list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
                        amdgpu_crtc = to_amdgpu_crtc(crtc);
                        if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) {
-                               vrefresh = amdgpu_crtc->hw_mode.vrefresh;
+                               vrefresh = drm_mode_vrefresh(&amdgpu_crtc->hw_mode);
                                break;
                        }
                }