linux/drivers/media/platform/marvell-ccic
YueHaibing 336934dbec media: marvell-ccic: Fix -Wunused-function warnings
If CONFIG_PM is n, gcc warns:

drivers/media/platform/marvell-ccic/mmp-driver.c:324:12: warning: ‘mmpcam_runtime_suspend’ defined but not used [-Wunused-function]
 static int mmpcam_runtime_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/marvell-ccic/mmp-driver.c:310:12: warning: ‘mmpcam_runtime_resume’ defined but not used [-Wunused-function]
 static int mmpcam_runtime_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~~

Mark them as __maybe_unused to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-11-16 10:31:07 +01:00
..
cafe-driver.c media: cafe-driver: use drvdata instead of back-casting from v4l2_device 2020-08-29 08:08:20 +02:00
Kconfig media: marvell-ccic: provide a clock for the sensor 2019-06-24 11:33:49 -04:00
Makefile
mcam-core.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
mcam-core.h media: cafe-driver: use generic power management 2020-08-06 11:26:42 +02:00
mmp-driver.c media: marvell-ccic: Fix -Wunused-function warnings 2020-11-16 10:31:07 +01:00