diff mbox series

[v1,1/2] media: nxp: imx8-isi: Mark PM functions as __maybe_unused

Message ID 20230417053949.7395-2-laurent.pinchart@ideasonboard.com
State New
Headers show
Series media: nxp: imx8-isi: Compilation fixes | expand

Commit Message

Laurent Pinchart April 17, 2023, 5:39 a.m. UTC
The system and runtime PM handler may be unused, depending on the kernel
configuration. Mark them as such.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c
index 238521622b75..a99c5fee6773 100644
--- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c
+++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c
@@ -311,7 +311,7 @@  static const struct mxc_isi_plat_data mxc_imx8mp_data = {
  * Power management
  */
 
-static int mxc_isi_pm_suspend(struct device *dev)
+static int __maybe_unused mxc_isi_pm_suspend(struct device *dev)
 {
 	struct mxc_isi_dev *isi = dev_get_drvdata(dev);
 	unsigned int i;
@@ -325,7 +325,7 @@  static int mxc_isi_pm_suspend(struct device *dev)
 	return pm_runtime_force_suspend(dev);
 }
 
-static int mxc_isi_pm_resume(struct device *dev)
+static int __maybe_unused mxc_isi_pm_resume(struct device *dev)
 {
 	struct mxc_isi_dev *isi = dev_get_drvdata(dev);
 	unsigned int i;
@@ -354,7 +354,7 @@  static int mxc_isi_pm_resume(struct device *dev)
 	return err;
 }
 
-static int mxc_isi_runtime_suspend(struct device *dev)
+static int __maybe_unused mxc_isi_runtime_suspend(struct device *dev)
 {
 	struct mxc_isi_dev *isi = dev_get_drvdata(dev);
 
@@ -363,7 +363,7 @@  static int mxc_isi_runtime_suspend(struct device *dev)
 	return 0;
 }
 
-static int mxc_isi_runtime_resume(struct device *dev)
+static int __maybe_unused mxc_isi_runtime_resume(struct device *dev)
 {
 	struct mxc_isi_dev *isi = dev_get_drvdata(dev);
 	int ret;