]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/fbmon.c
[PATCH] fbmon: horizontal frequency rounding fix
[linux-2.6-omap-h63xx.git] / drivers / video / fbmon.c
index 6cd1976548d4d157ae7d530de585684f6947d3d0..c2718bb949493bc8fb6a61a7e0ef94fd281650fb 100644 (file)
@@ -1241,6 +1241,8 @@ int fb_validate_mode(const struct fb_var_screeninfo *var, struct fb_info *info)
                vtotal *= 2;
 
        hfreq = pixclock/htotal;
+       hfreq = (hfreq + 500) / 1000 * 1000;
+
        vfreq = hfreq/vtotal;
 
        return (vfreq < vfmin || vfreq > vfmax ||