OpenCloudOS-Kernel/drivers/media/platform/nxp
Arnd Bergmann 55e2a6e36b media: nxp: ignore unused suspend operations
gcc warns about some functions being unused when CONFIG_PM_SLEEP
is disabled:

drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c:328:12: error: 'mxc_isi_pm_resume' defined but not used [-Werror=unused-function]
  328 | static int mxc_isi_pm_resume(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~
drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c:314:12: error: 'mxc_isi_pm_suspend' defined but not used [-Werror=unused-function]
  314 | static int mxc_isi_pm_suspend(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~

Use the modern SYSTEM_SLEEP_PM_OPS()/RUNTIME_PM_OPS() helpers in place
of the old SET_SYSTEM_SLEEP_PM_OPS()/SET_RUNTIME_PM_OPS() ones.

By convention, use pm_ptr() to guard the reference to the operations.
This makes no difference as long as the driver requires CONFIG_PM,
but is what users of SET_RUNTIME_PM_OPS() are supposed to do.

Fixes: cf21f328fc ("media: nxp: Add i.MX8 ISI driver")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-05-08 12:11:25 +01:00
..
dw100 media: dw100: Convert to platform remove callback returning void 2023-04-11 16:59:15 +02:00
imx-jpeg media: imx-jpeg: Encoder add support for 12bit jpeg 2023-04-15 09:14:58 +01:00
imx8-isi media: nxp: ignore unused suspend operations 2023-05-08 12:11:25 +01:00
Kconfig media: nxp: Add i.MX8 ISI driver 2023-04-16 07:35:06 +01:00
Makefile media: nxp: Add i.MX8 ISI driver 2023-04-16 07:35:06 +01:00
imx-mipi-csis.c media: imx-mipi-csis: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00
imx-pxp.c media: imx-pxp: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00
imx-pxp.h
imx7-media-csi.c media: imx: imx7-media-csi: Fail on invalid type in VIDIOC_G_SELECTION 2023-04-11 18:11:53 +02:00
mx2_emmaprp.c media: mx2_emmaprp: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00