The pm power's usage_count should be first added by
one before putting it into suspend state. Otherwise
the usage_count will be negative and the power cannot
be put into suspend state correctly.
Signed-off-by: Fancy Fang <chen.fang@freescale.com>
(cherry picked from commit
a48460b41399112f5d3ae03b30e3f9e885346ff7)
Conflicts:
drivers/video/mxsfb.c
case FB_BLANK_NORMAL:
if (host->enabled) {
mxsfb_disable_controller(fb_info);
- pm_runtime_put_noidle(&host->pdev->dev);
pm_runtime_put_sync_suspend(&host->pdev->dev);
- pm_runtime_get_noresume(&host->pdev->dev);
}
clk_disable_disp_axi(host);
writel(0, host->base + LCDC_CTRL);
mxsfb_set_par(fb_info);
mxsfb_enable_controller(fb_info);
+ pm_runtime_get_sync(&host->pdev->dev);
}
ret = register_framebuffer(fb_info);