diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fbmon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c index 6cd1976548d4..c2718bb94949 100644 --- a/drivers/video/fbmon.c +++ b/drivers/video/fbmon.c | |||
@@ -1241,6 +1241,8 @@ int fb_validate_mode(const struct fb_var_screeninfo *var, struct fb_info *info) | |||
1241 | vtotal *= 2; | 1241 | vtotal *= 2; |
1242 | 1242 | ||
1243 | hfreq = pixclock/htotal; | 1243 | hfreq = pixclock/htotal; |
1244 | hfreq = (hfreq + 500) / 1000 * 1000; | ||
1245 | |||
1244 | vfreq = hfreq/vtotal; | 1246 | vfreq = hfreq/vtotal; |
1245 | 1247 | ||
1246 | return (vfreq < vfmin || vfreq > vfmax || | 1248 | return (vfreq < vfmin || vfreq > vfmax || |