diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-02-18 06:05:30 (GMT) |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-02-25 21:06:05 (GMT) |
commit | 3d2d98ee1af0cf6eebfbd6bff4c17d3601ac1284 (patch) | |
tree | b2bb93fe152c960829cfe9b59cad6aa288688f7c | |
parent | 7a26f9ad1b5badfd0200ce2262ad696e2a6b7fbb (diff) | |
download | linux-3d2d98ee1af0cf6eebfbd6bff4c17d3601ac1284.tar.xz |
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 <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
-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 843b65f..fa21544 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; } } |