Commit c3eaa088 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/radeon/dpm/rs780: use drm_mode_vrefresh()



Rather than open coding it.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
parent d2aebe33
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -62,9 +62,7 @@ static void rs780_get_pm_mode_parameters(struct radeon_device *rdev)
			radeon_crtc = to_radeon_crtc(crtc);
			radeon_crtc = to_radeon_crtc(crtc);
			pi->crtc_id = radeon_crtc->crtc_id;
			pi->crtc_id = radeon_crtc->crtc_id;
			if (crtc->mode.htotal && crtc->mode.vtotal)
			if (crtc->mode.htotal && crtc->mode.vtotal)
				pi->refresh_rate =
				pi->refresh_rate = drm_mode_vrefresh(&crtc->mode);
					(crtc->mode.clock * 1000) /
					(crtc->mode.htotal * crtc->mode.vtotal);
			break;
			break;
		}
		}
	}
	}