Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: mtk-mdp: fix build error

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>

authored by

Minghsiu Tsai and committed by
Mauro Carvalho Chehab
1b06fcf5 37bf7e34

+2 -2
+2 -2
drivers/media/platform/mtk-mdp/mtk_mdp_core.c
··· 233 233 return 0; 234 234 } 235 235 236 - #if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP) 236 + #ifdef CONFIG_PM 237 237 static int mtk_mdp_pm_suspend(struct device *dev) 238 238 { 239 239 struct mtk_mdp_dev *mdp = dev_get_drvdata(dev); ··· 251 251 252 252 return 0; 253 253 } 254 - #endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */ 254 + #endif /* CONFIG_PM */ 255 255 256 256 #ifdef CONFIG_PM_SLEEP 257 257 static int mtk_mdp_suspend(struct device *dev)