]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] media: mtk-mdp: fix build error
authorMinghsiu Tsai <minghsiu.tsai@mediatek.com>
Mon, 19 Sep 2016 06:34:43 +0000 (03:34 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
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 <minghsiu.tsai@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
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)