diff options
Diffstat (limited to 'drivers/video/via/dvi.c')
-rw-r--r-- | drivers/video/via/dvi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/via/dvi.c b/drivers/video/via/dvi.c index 9138e517267c..6be72f0ba21d 100644 --- a/drivers/video/via/dvi.c +++ b/drivers/video/via/dvi.c | |||
@@ -172,10 +172,11 @@ static int tmds_register_read_bytes(int index, u8 *buff, int buff_len) | |||
172 | } | 172 | } |
173 | 173 | ||
174 | /* DVI Set Mode */ | 174 | /* DVI Set Mode */ |
175 | void viafb_dvi_set_mode(const struct fb_var_screeninfo *var, int iga) | 175 | void viafb_dvi_set_mode(const struct fb_var_screeninfo *var, |
176 | u16 cxres, u16 cyres, int iga) | ||
176 | { | 177 | { |
177 | struct fb_var_screeninfo dvi_var = *var; | 178 | struct fb_var_screeninfo dvi_var = *var; |
178 | struct crt_mode_table *rb_mode; | 179 | const struct fb_videomode *rb_mode; |
179 | int maxPixelClock; | 180 | int maxPixelClock; |
180 | 181 | ||
181 | maxPixelClock = viaparinfo->shared->tmds_setting_info.max_pixel_clock; | 182 | maxPixelClock = viaparinfo->shared->tmds_setting_info.max_pixel_clock; |
@@ -185,7 +186,7 @@ void viafb_dvi_set_mode(const struct fb_var_screeninfo *var, int iga) | |||
185 | viafb_fill_var_timing_info(&dvi_var, rb_mode); | 186 | viafb_fill_var_timing_info(&dvi_var, rb_mode); |
186 | } | 187 | } |
187 | 188 | ||
188 | viafb_fill_crtc_timing(&dvi_var, iga); | 189 | viafb_fill_crtc_timing(&dvi_var, cxres, cyres, iga); |
189 | } | 190 | } |
190 | 191 | ||
191 | /* Sense DVI Connector */ | 192 | /* Sense DVI Connector */ |