fix display size err in hdmi mode
authoryxj <yxj@rock-chips.com>
Mon, 12 Nov 2012 06:57:49 +0000 (14:57 +0800)
committeryxj <yxj@rock-chips.com>
Mon, 12 Nov 2012 07:50:21 +0000 (15:50 +0800)
drivers/video/rockchip/rk_fb.c

index 586f1618932bd3e5ff5f0475b906afe4846c2570..eea704bc2b7b33d1db2425148a79711e03e05a5d 100644 (file)
@@ -405,7 +405,7 @@ static int rk_fb_set_par(struct fb_info *info)
                ysize = screen->y_res;
        }
 
-#if defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)
+#if defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF) || defined(CONFIG_NO_DUAL_DISP)
        if(screen->screen_id == 0) //this is for device like rk2928 ,whic have one lcdc but two display outputs
        {                          //save parameter set by android
                dev_drv->screen0->xsize = xsize;