diff --git a/drivers/video/msm/msm_fb.h b/drivers/video/msm/msm_fb.h index 8783bd0c16c..bd08aca8cd7 100644 --- a/drivers/video/msm/msm_fb.h +++ b/drivers/video/msm/msm_fb.h @@ -40,16 +40,14 @@ #include #include -#ifdef CONFIG_HAS_EARLYSUSPEND -#undef CONFIG_HAS_EARLYSUSPEND -#endif - #include "msm_fb_panel.h" #include "mdp.h" #define MSM_FB_DEFAULT_PAGE_SIZE 2 #define MFD_KEY 0x11161126 #define MSM_FB_MAX_DEV_LIST 32 +/* Disable EARLYSUSPEND for mdp driver */ +#define DISABLE_EARLY_SUSPEND struct disp_info_type_suspend { boolean op_enable; @@ -164,12 +162,14 @@ struct msm_fb_data_type { struct dentry *sub_dir; #endif +#ifndef DISABLE_EARLY_SUSPEND #ifdef CONFIG_HAS_EARLYSUSPEND struct early_suspend early_suspend; #ifdef CONFIG_FB_MSM_MDDI struct early_suspend mddi_early_suspend; struct early_suspend mddi_ext_early_suspend; #endif +#endif #endif u32 mdp_fb_page_protection;