From 4d5dd8a763301ab9d2ebc7fc599b98e5d2b49f46 Mon Sep 17 00:00:00 2001 From: Naseer Ahmed Date: Mon, 17 Jun 2013 13:53:57 -0400 Subject: [PATCH] msm: mdp: Disable early suspend locally undefing at the header level could mess with other components. Signed-off-by: Naseer Ahmed --- drivers/video/msm/msm_fb.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;