diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c index 6b96da07a36c..68b10311b33f 100644 --- a/drivers/video/msm/mdp.c +++ b/drivers/video/msm/mdp.c @@ -2344,8 +2344,10 @@ static int mdp_off(struct platform_device *pdev) mfd->panel.type == LCDC_PANEL || mfd->panel.type == LVDS_PANEL) mdp4_lcdc_off(pdev); +#ifdef CONFIG_FB_MSM_WRITEBACK_MSM_PANEL else if (mfd->panel.type == WRITEBACK_PANEL) mdp4_overlay_writeback_off(pdev); +#endif mdp_pipe_ctrl(MDP_CMD_BLOCK, MDP_BLOCK_POWER_ON, FALSE); ret = panel_next_off(pdev);