summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.(none)>2007-11-30 14:24:30 -0500
committerAlex Deucher <alex@botch2.(none)>2007-11-30 14:24:30 -0500
commit5af15739571c09260750bcfd3620e16fd7fec862 (patch)
tree6b3f1bcd7aedddcdf373faaf7e85a281bd102408
parent017c939cf0a2b12fbdc1681cc70c28b23ae3b397 (diff)
RADEON: small cleanup of pll code
-rw-r--r--src/atombios_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c
index 0609bb5..a2f0291 100644
--- a/src/atombios_crtc.c
+++ b/src/atombios_crtc.c
@@ -240,10 +240,10 @@ atombios_crtc_set_pll(xf86CrtcPtr crtc, DisplayModePtr mode)
unsigned char *space;
RADEONSavePtr save = &info->ModeReg;
- sclock = mode->Clock;
if (IS_AVIVO_VARIANT) {
- PLLCalculate(crtc->scrn, mode->Clock, &ref_div, &fb_div, &post_div);
+ PLLCalculate(crtc->scrn, sclock, &ref_div, &fb_div, &post_div);
} else {
+ sclock = save->dot_clock_freq * 10;
fb_div = save->feedback_div;
post_div = save->post_div;
ref_div = save->ppll_ref_div;