static void meson_vout_late_resume(struct early_suspend *h) { if (!early_suspend_flag) return; early_suspend_flag = 0; //meson_vout_resume((struct platform_device *)h->param); vout_resume(); }
static int meson_vout_resume(struct platform_device *pdev) { #ifdef CONFIG_HAS_EARLYSUSPEND if (early_suspend_flag) return 0; #endif vout_resume(); return 0; }
void resume_vout_early(void) { #ifdef CONFIG_HAS_EARLYSUSPEND early_suspend_flag = 0; early_resume_flag = 1; vout_resume(); #endif return; }