From: yxj Date: Wed, 29 Aug 2012 06:39:53 +0000 (+0800) Subject: rkfb: stanby the screen ,then power off X-Git-Tag: firefly_0821_release~8788 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e49620dc6d4b13db2c1822808b2cd51238342e8f;p=firefly-linux-kernel-4.4.55.git rkfb: stanby the screen ,then power off --- diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index e11b731aa26f..f25d6a115422 100644 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -1131,11 +1131,10 @@ static void rkfb_early_suspend(struct early_suspend *h) { if (!inf->lcdc_dev_drv[i]) continue; - if(inf->lcdc_dev_drv[i]->screen_ctr_info->io_disable) - inf->lcdc_dev_drv[i]->screen_ctr_info->io_disable(); if(inf->lcdc_dev_drv[i]->screen0->standby) inf->lcdc_dev_drv[i]->screen0->standby(1); - + if(inf->lcdc_dev_drv[i]->screen_ctr_info->io_disable) + inf->lcdc_dev_drv[i]->screen_ctr_info->io_disable(); inf->lcdc_dev_drv[i]->suspend(inf->lcdc_dev_drv[i]); } }