Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62d625c9 authored by Stanimir Varbanov's avatar Stanimir Varbanov Committed by Mauro Carvalho Chehab
Browse files

media: venus: mark venc and vdec PM functions as __maybe_unused



Without PM support gcc could warns about unused functions, thus
mark runtime_suspend/resume as __maybe_unused.

Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent e0ee62c4
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1103,8 +1103,7 @@ static int vdec_remove(struct platform_device *pdev)
	return 0;
}

#ifdef CONFIG_PM
static int vdec_runtime_suspend(struct device *dev)
static __maybe_unused int vdec_runtime_suspend(struct device *dev)
{
	struct venus_core *core = dev_get_drvdata(dev);

@@ -1118,7 +1117,7 @@ static int vdec_runtime_suspend(struct device *dev)
	return 0;
}

static int vdec_runtime_resume(struct device *dev)
static __maybe_unused int vdec_runtime_resume(struct device *dev)
{
	struct venus_core *core = dev_get_drvdata(dev);
	int ret;
@@ -1132,7 +1131,6 @@ static int vdec_runtime_resume(struct device *dev)

	return ret;
}
#endif

static const struct dev_pm_ops vdec_pm_ops = {
	SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+2 −4
Original line number Diff line number Diff line
@@ -1224,8 +1224,7 @@ static int venc_remove(struct platform_device *pdev)
	return 0;
}

#ifdef CONFIG_PM
static int venc_runtime_suspend(struct device *dev)
static __maybe_unused int venc_runtime_suspend(struct device *dev)
{
	struct venus_core *core = dev_get_drvdata(dev);

@@ -1239,7 +1238,7 @@ static int venc_runtime_suspend(struct device *dev)
	return 0;
}

static int venc_runtime_resume(struct device *dev)
static __maybe_unused int venc_runtime_resume(struct device *dev)
{
	struct venus_core *core = dev_get_drvdata(dev);
	int ret;
@@ -1253,7 +1252,6 @@ static int venc_runtime_resume(struct device *dev)

	return ret;
}
#endif

static const struct dev_pm_ops venc_pm_ops = {
	SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,