Skip to content

Commit e6fcf46

Browse files
rddunlapmchehab
authored andcommitted
media: media/platform/marvell-ccic: fix warnings when CONFIG_PM is not enabled
Fix build warnings when CONFIG_PM is not set/enabled: ../drivers/media/platform/marvell-ccic/mmp-driver.c:324:12: warning: 'mmpcam_runtime_suspend' defined but not used [-Wunused-function] 324 | 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] 310 | static int mmpcam_runtime_resume(struct device *dev) Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent 2da185d commit e6fcf46

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/media/platform/marvell-ccic/mmp-driver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ static int mmpcam_platform_remove(struct platform_device *pdev)
307307
* Suspend/resume support.
308308
*/
309309

310+
#ifdef CONFIG_PM
310311
static int mmpcam_runtime_resume(struct device *dev)
311312
{
312313
struct mmp_camera *cam = dev_get_drvdata(dev);
@@ -352,6 +353,7 @@ static int __maybe_unused mmpcam_resume(struct device *dev)
352353
return mccic_resume(&cam->mcam);
353354
return 0;
354355
}
356+
#endif
355357

356358
static const struct dev_pm_ops mmpcam_pm_ops = {
357359
SET_RUNTIME_PM_OPS(mmpcam_runtime_suspend, mmpcam_runtime_resume, NULL)

0 commit comments

Comments
 (0)