From 60a1d714100a31be1b32295b0929052cd5d64d53 Mon Sep 17 00:00:00 2001 From: Robby Cai Date: Wed, 24 Jul 2019 15:46:16 +0800 Subject: [PATCH] MLK-22309-1 media: mxc-parallel-csi: mark PM functions as __maybe_unused fix build warnings if CONFIG_PM_SLEEP is disabled. drivers/media/platform/imx8/mxc-parallel-csi.c:618:12: warning: 'parallel_csi_pm_resume' defined but not used [-Wunused-function] static int parallel_csi_pm_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/imx8/mxc-parallel-csi.c:613:12: warning: 'parallel_csi_pm_suspend' defined but not used [-Wunused-function] static int parallel_csi_pm_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Robby Cai Reviewed-by: Sandor Yu --- drivers/media/platform/imx8/mxc-parallel-csi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/imx8/mxc-parallel-csi.c b/drivers/media/platform/imx8/mxc-parallel-csi.c index afefdd54db08..7e41a3199807 100644 --- a/drivers/media/platform/imx8/mxc-parallel-csi.c +++ b/drivers/media/platform/imx8/mxc-parallel-csi.c @@ -610,17 +610,17 @@ static int mxc_parallel_csi_remove(struct platform_device *pdev) return 0; } -static int parallel_csi_pm_suspend(struct device *dev) +static int __maybe_unused parallel_csi_pm_suspend(struct device *dev) { return pm_runtime_force_suspend(dev); } -static int parallel_csi_pm_resume(struct device *dev) +static int __maybe_unused parallel_csi_pm_resume(struct device *dev) { return pm_runtime_force_resume(dev); } -static int parallel_csi_runtime_suspend(struct device *dev) +static int __maybe_unused parallel_csi_runtime_suspend(struct device *dev) { struct mxc_parallel_csi_dev *pcsidev = dev_get_drvdata(dev); @@ -629,7 +629,7 @@ static int parallel_csi_runtime_suspend(struct device *dev) return 0; } -static int parallel_csi_runtime_resume(struct device *dev) +static int __maybe_unused parallel_csi_runtime_resume(struct device *dev) { struct mxc_parallel_csi_dev *pcsidev = dev_get_drvdata(dev); int ret; -- 2.17.1