This commit fixes issue that include power managment
config(CONFIG_PM) missing in driver. Consistency
is the key.

Signed-off-by: Adnan Ali <[email protected]>
---
 drivers/staging/omapdrm/omap_drv.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/omapdrm/omap_drv.c 
b/drivers/staging/omapdrm/omap_drv.c
index 4beab94..92ed302 100644
--- a/drivers/staging/omapdrm/omap_drv.c
+++ b/drivers/staging/omapdrm/omap_drv.c
@@ -792,7 +792,7 @@ static int pdev_suspend(struct platform_device *pDevice, 
pm_message_t state)
        DBG("");
        return 0;
 }
-
+#ifdef CONFIG_PM
 static int pdev_resume(struct platform_device *device)
 {
        DBG("");
@@ -803,6 +803,7 @@ static void pdev_shutdown(struct platform_device *device)
 {
        DBG("");
 }
+#endif
 
 static int pdev_probe(struct platform_device *device)
 {
@@ -826,8 +827,10 @@ struct platform_driver pdev = {
                },
                .probe = pdev_probe,
                .remove = pdev_remove,
+#ifdef CONFIG_PM
                .suspend = pdev_suspend,
                .resume = pdev_resume,
+#endif
                .shutdown = pdev_shutdown,
 };
 
-- 
1.7.4.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to