[media] media: mtk-mdp: fix build error
authorMinghsiu Tsai <[email protected]>
Mon, 19 Sep 2016 06:34:43 +0000 (03:34 -0300)
committerMauro Carvalho Chehab <[email protected]>
Fri, 21 Oct 2016 14:09:51 +0000 (12:09 -0200)
This patch fix build error without CONFIG_PM_RUNTIME
and CONFIG_PM_SLEEP

Signed-off-by: Minghsiu Tsai <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/mtk-mdp/mtk_mdp_core.c

index 7e35235d82e2b940ffd7f39cf9c4ecaa6334a120..40a229d8a1f5934afe79f119340c2f080b969c63 100644 (file)
@@ -233,7 +233,7 @@ static int mtk_mdp_remove(struct platform_device *pdev)
        return 0;
 }
 
-#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP)
+#ifdef CONFIG_PM
 static int mtk_mdp_pm_suspend(struct device *dev)
 {
        struct mtk_mdp_dev *mdp = dev_get_drvdata(dev);
@@ -251,7 +251,7 @@ static int mtk_mdp_pm_resume(struct device *dev)
 
        return 0;
 }
-#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */
+#endif /* CONFIG_PM */
 
 #ifdef CONFIG_PM_SLEEP
 static int mtk_mdp_suspend(struct device *dev)