video: rockchip: rk3288: fix extend screen type error
authorHuang Jiachai <hjc@rock-chips.com>
Tue, 23 Feb 2016 10:19:58 +0000 (18:19 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Wed, 2 Mar 2016 11:13:18 +0000 (19:13 +0800)
Change-Id: Ie1754c8ffa51f01637bf08f2fae443c821d8e09a
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
(cherry picked from commit b6403156107533cf97e6fe326576831af214f47d)

drivers/video/rockchip/lcdc/rk3288_lcdc.c

index 5e44b961d66bc305ccde1fa8a9b6012e7e39a15e..650e595f9ae651b07471248bd4b7085533e9d696 100755 (executable)
@@ -1354,6 +1354,11 @@ static int rk3288_load_screen(struct rk_lcdc_driver *dev_drv, bool initscreen)
                        mask = m_EDP_OUT_EN;
                        val = v_EDP_OUT_EN(1);
                        break;
+               default:
+                       mask = 0;
+                       val = 0;
+                       pr_info("unknow screen type: %d\n", screen->type);
+                       break;
                }
                if (dev_drv->version == VOP_FULL_RK3288_V1_1) {
                        mask |= m_HDMI_DCLK_OUT_EN;