diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-03-11 03:04:01 +0300 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-03-12 13:22:06 +0300 |
commit | fd3cc69848b7e1873e5f12bbcdd572b20277ecf3 (patch) | |
tree | 05ce614d358d964f36b40d3dd148770c8c8b5a4b /drivers/video/via/dvi.c | |
parent | 97597a39778eefb628eb7734a18f32c7880ad0e0 (diff) | |
download | linux-fd3cc69848b7e1873e5f12bbcdd572b20277ecf3.tar.xz |
viafb: remove duplicated clock storage
The clocks can be easily recalculated by the timing and refresh value.
This brings us one step closer to removing VIAs modetable and use
generic ones and being easier extensible.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/dvi.c')
-rw-r--r-- | drivers/video/via/dvi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/via/dvi.c b/drivers/video/via/dvi.c index 84e21b39dd0b..41ca198b5098 100644 --- a/drivers/video/via/dvi.c +++ b/drivers/video/via/dvi.c @@ -195,7 +195,9 @@ void viafb_dvi_set_mode(struct VideoModeTable *mode, int mode_bpp, struct crt_mode_table *pDviTiming; unsigned long desirePixelClock, maxPixelClock; pDviTiming = mode->crtc; - desirePixelClock = pDviTiming->clk / 1000000; + desirePixelClock = pDviTiming->refresh_rate + * pDviTiming->crtc.hor_total * pDviTiming->crtc.ver_total + / 1000000; maxPixelClock = (unsigned long)viaparinfo-> tmds_setting_info->max_pixel_clock; |