From 4222a78712e5e46bdc758c5ce6704b0f699a0571 Mon Sep 17 00:00:00 2001 From: Huang Jiachai Date: Thu, 10 Mar 2016 11:37:33 +0800 Subject: [PATCH] video: rockchip: fb: update for extend vop fb info like rk3366 vop0 is different from vop1, so fb[rk_fb->num_fb >> 1] is not correct for extend vop fb info. Change-Id: Ie7ed0614a5cb32fcb22707c88aa70be45cb243d7 Signed-off-by: Huang Jiachai --- drivers/video/rockchip/rk_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 04029f75100d..443201a1a3d9 100644 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -4357,7 +4357,7 @@ int rk_fb_register(struct rk_lcdc_driver *dev_drv, main_fbi->fbops->fb_pan_display(&main_fbi->var, main_fbi); #endif } else { - struct fb_info *extend_fbi = rk_fb->fb[rk_fb->num_fb >> 1]; + struct fb_info *extend_fbi = rk_fb->fb[dev_drv->fb_index_base]; extend_fbi->var.pixclock = rk_fb->fb[0]->var.pixclock; extend_fbi->fbops->fb_open(extend_fbi, 1); -- 2.34.1