Message ID | 9a586496-0d62-f246-19ec-d17b6f47e200@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | media/platform/marvell-ccic: fix warnings when CONFIG_PM is not enabled | expand |
--- linux-next-20201009.orig/drivers/media/platform/marvell-ccic/mmp-driver.c +++ linux-next-20201009/drivers/media/platform/marvell-ccic/mmp-driver.c @@ -307,6 +307,7 @@ static int mmpcam_platform_remove(struct * Suspend/resume support. */ +#ifdef CONFIG_PM static int mmpcam_runtime_resume(struct device *dev) { struct mmp_camera *cam = dev_get_drvdata(dev); @@ -352,6 +353,7 @@ static int __maybe_unused mmpcam_resume( return mccic_resume(&cam->mcam); return 0; } +#endif static const struct dev_pm_ops mmpcam_pm_ops = { SET_RUNTIME_PM_OPS(mmpcam_runtime_suspend, mmpcam_runtime_resume, NULL)