]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
fbdev: Modify vsync timing calculation in wm8505fb
authorAlexey Charkov <alchark@gmail.com>
Mon, 20 Dec 2010 13:09:57 +0000 (16:09 +0300)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 20 Dec 2010 16:05:48 +0000 (01:05 +0900)
This removes the '+1' in vsync timing calculation for wm8505fb to
directly use values provided from the board setup code.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/wm8505fb.c

index 9ca9dbb62f965e390dec7d91058db815532966d2..96e34a569169db21d47f2b1ac3e687cb68bcb071 100644 (file)
@@ -88,7 +88,7 @@ static int wm8505fb_set_timing(struct fb_info *info)
        int v_start = info->var.upper_margin;
        int v_end = v_start + info->var.yres;
        int v_all = v_end + info->var.lower_margin;
-       int v_sync = info->var.vsync_len + 1;
+       int v_sync = info->var.vsync_len;
 
        writel(0, fbi->regbase + WMT_GOVR_TG);