summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-08-25 08:02:20 +0100
committerAndy Green <andy.green@linaro.org>2011-08-25 08:02:20 +0100
commitbafbb3a60bc7de890990d4045a9741f4b56334d9 (patch)
treeb43eba67435f28bbdf2521e3f6622866759d3fa4
parentab36b31619ab1c6cbdf5328c20ce2ec11c6869a2 (diff)
SGX only use earlysuspend if configured
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/gpu/pvr/display/omap_sgx_displayclass.c8
-rw-r--r--drivers/gpu/pvr/omaplfb/omaplfb_linux.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/pvr/display/omap_sgx_displayclass.c b/drivers/gpu/pvr/display/omap_sgx_displayclass.c
index 7ae2420d3e3..89852fb8471 100644
--- a/drivers/gpu/pvr/display/omap_sgx_displayclass.c
+++ b/drivers/gpu/pvr/display/omap_sgx_displayclass.c
@@ -35,7 +35,7 @@
#if defined(LDM_PLATFORM)
#include <linux/platform_device.h>
-#if defined(SGX_EARLYSUSPEND)
+#if defined(SGX_EARLYSUSPEND) && defined(CONFIG_HAS_EARLYSUSPEND)
#include <linux/earlysuspend.h>
#endif
#endif
@@ -1485,7 +1485,7 @@ static void CommonSuspend(void)
bDeviceSuspended = OMAP_TRUE;
}
-#if defined(SGX_EARLYSUSPEND)
+#if defined(SGX_EARLYSUSPEND) && defined(CONFIG_HAS_EARLYSUSPEND)
static struct early_suspend driver_early_suspend;
@@ -1587,7 +1587,7 @@ static int __init omap_sgx_dc_init(void)
return -ENODEV;
}
-#if defined(SGX_EARLYSUSPEND)
+#if defined(SGX_EARLYSUSPEND) && defined(CONFIG_HAS_EARLYSUSPEND)
driver_early_suspend.suspend = DriverSuspend_Entry;
driver_early_suspend.resume = DriverResume_Entry;
driver_early_suspend.level = EARLY_SUSPEND_LEVEL_DISABLE_FB;
@@ -1607,7 +1607,7 @@ static IMG_VOID __exit omap_sgx_dc_deinit(IMG_VOID)
#if defined(LDM_PLATFORM)
DEBUG_PRINTK("Removing platform driver");
platform_driver_unregister(&omap_sgx_dc_driver);
-#if defined(SGX_EARLYSUSPEND)
+#if defined(SGX_EARLYSUSPEND) && defined(CONFIG_HAS_EARLYSUSPEND)
unregister_early_suspend(&driver_early_suspend);
#endif
#endif
diff --git a/drivers/gpu/pvr/omaplfb/omaplfb_linux.c b/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
index e1cf569e387..1a84db45eb7 100644
--- a/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
+++ b/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
@@ -54,7 +54,7 @@
#if defined(LDM_PLATFORM)
#include <linux/platform_device.h>
-#if defined(SGX_EARLYSUSPEND)
+#if defined(SGX_EARLYSUSPEND) && defined(CONFIG_HAS_EARLYSUSPEND)
#include <linux/earlysuspend.h>
#endif
#endif