Commit a60e227b authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Fix new radeon clock calculation.

From Peter Osterlund <petero2@telia.com>

This code only ends up being used when all else fails,
so probably very few people actually ever saw this.
parent 5dc2eddb
......@@ -566,8 +566,9 @@ static int __devinit radeon_probe_pll_params(struct radeonfb_info *rinfo)
break;
}
do_div(vclk, 1000);
xtal = (xtal * denom) / num;
vclk *= denom;
do_div(vclk, 1000 * num);
xtal = vclk;
if ((xtal > 26900) && (xtal < 27100))
xtal = 2700;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment