rkfb: stanby the screen ,then power off
authoryxj <yxj@rock-chips.com>
Wed, 29 Aug 2012 06:39:53 +0000 (14:39 +0800)
committeryxj <yxj@rock-chips.com>
Wed, 29 Aug 2012 07:45:27 +0000 (15:45 +0800)
drivers/video/rockchip/rk_fb.c

index e11b731aa26fb8133431c07e90ecd25c467275da..f25d6a1154225d60a870ec8a4bfa3436eb908288 100644 (file)
@@ -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]);
        }
 }