]> err.no Git - linux-2.6/blobdiff - drivers/video/fbmon.c
[ARM] 2956/1: fix the "Fix gcc4 build errors in ucb1x00-core.c"
[linux-2.6] / drivers / video / fbmon.c
index 791bec3d672af47d999e798baf87760cc4b17188..713226cdf3c6b7a7ce0a247447d1909d05e57396 100644 (file)
@@ -314,11 +314,13 @@ static int edid_is_monitor_block(unsigned char *block)
                return 0;
 }
 
-static void calc_mode_timings(int xres, int yres, int refresh, struct fb_videomode *mode)
+static void calc_mode_timings(int xres, int yres, int refresh,
+                             struct fb_videomode *mode)
 {
        struct fb_var_screeninfo var;
        struct fb_info info;
        
+       memset(&var, 0, sizeof(struct fb_var_screeninfo));
        var.xres = xres;
        var.yres = yres;
        fb_get_mode(FB_VSYNCTIMINGS | FB_IGNOREMON,