rk hdmi: fix fb switch lead to hdmi no display
authorhjc <hjc@rock-chips.com>
Wed, 20 Aug 2014 11:26:24 +0000 (19:26 +0800)
committerhjc <hjc@rock-chips.com>
Wed, 20 Aug 2014 11:26:47 +0000 (19:26 +0800)
drivers/video/rockchip/hdmi/rk_hdmi_task.c

index 26fffd4399106de080331cf55e28f32b94ccb2c7..9674407bea98f48669f5a5b5564ddcea86a62231 100755 (executable)
@@ -81,8 +81,8 @@ void hdmi_sys_remove(struct hdmi *hdmi)
        INIT_LIST_HEAD(&hdmi->edid.modelist);
        hdmi->display = HDMI_DISABLE;
        if (hdmi->set_vif)
-               hdmi->set_vif(hdmi, hdmi->lcdc->cur_screen, 0);
-       rk_fb_switch_screen(hdmi->lcdc->cur_screen, 0, hdmi->lcdc->id);
+               hdmi->set_vif(hdmi, hdmi->lcdc->screen1, 0);
+       rk_fb_switch_screen(hdmi->lcdc->screen1, 0, hdmi->lcdc->id);
        kobject_uevent_env(&hdmi->ddev->dev->kobj, KOBJ_REMOVE, envp);
 
 #ifdef CONFIG_SWITCH