rk3288 lcdc: check win2/3 area var
authorhjc <hjc@rock-chips.com>
Tue, 8 Apr 2014 03:31:53 +0000 (11:31 +0800)
committerhjc <hjc@rock-chips.com>
Tue, 8 Apr 2014 03:32:02 +0000 (11:32 +0800)
drivers/video/rockchip/lcdc/rk3288_lcdc.c

index 490494dd10fde1feb77275dca575875e1454a437..fc847d8880fc2c8fab67fdcb7b18029ee9ba883d 100755 (executable)
@@ -589,7 +589,7 @@ static int rk3288_win_area_check_var(int win_id,int area_num,struct rk_lcdc_win_
                        struct rk_lcdc_win_area *area_now)
 {
        if((area_pre->ypos >= area_now->ypos) ||
-               (area_pre->ypos+area_pre->ysize >= area_now->ypos)){
+               (area_pre->ypos+area_pre->ysize > area_now->ypos)){
                area_now->state = 0;
                pr_err("win[%d]:\n"
                        "area_pre[%d]:ypos[%d],ysize[%d]\n"