Commit 1b06fcf5 authored by Minghsiu Tsai's avatar Minghsiu Tsai Committed by Mauro Carvalho Chehab
Browse files

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



This patch fix build error without CONFIG_PM_RUNTIME
and CONFIG_PM_SLEEP

Signed-off-by: default avatarMinghsiu Tsai <minghsiu.tsai@mediatek.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 37bf7e34
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -233,7 +233,7 @@ static int mtk_mdp_remove(struct platform_device *pdev)
	return 0;
	return 0;
}
}


#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP)
#ifdef CONFIG_PM
static int mtk_mdp_pm_suspend(struct device *dev)
static int mtk_mdp_pm_suspend(struct device *dev)
{
{
	struct mtk_mdp_dev *mdp = dev_get_drvdata(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;
	return 0;
}
}
#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */
#endif /* CONFIG_PM */


#ifdef CONFIG_PM_SLEEP
#ifdef CONFIG_PM_SLEEP
static int mtk_mdp_suspend(struct device *dev)
static int mtk_mdp_suspend(struct device *dev)