aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbmon.c')
-rw-r--r--drivers/video/fbmon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
index 791bec3d672a..713226cdf3c6 100644
--- a/drivers/video/fbmon.c
+++ b/drivers/video/fbmon.c
@@ -314,11 +314,13 @@ static int edid_is_monitor_block(unsigned char *block)
314 return 0; 314 return 0;
315} 315}
316 316
317static void calc_mode_timings(int xres, int yres, int refresh, struct fb_videomode *mode) 317static void calc_mode_timings(int xres, int yres, int refresh,
318 struct fb_videomode *mode)
318{ 319{
319 struct fb_var_screeninfo var; 320 struct fb_var_screeninfo var;
320 struct fb_info info; 321 struct fb_info info;
321 322
323 memset(&var, 0, sizeof(struct fb_var_screeninfo));
322 var.xres = xres; 324 var.xres = xres;
323 var.yres = yres; 325 var.yres = yres;
324 fb_get_mode(FB_VSYNCTIMINGS | FB_IGNOREMON, 326 fb_get_mode(FB_VSYNCTIMINGS | FB_IGNOREMON,