media: intel/ipu6: Switch to RUNTIME_PM_OPS() and SYSTEM_SLEEP_PM_OPS
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 1 May 2024 13:08:11 +0000 (14:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 2 May 2024 10:13:56 +0000 (11:13 +0100)
Replace the old helpers with its modern alternative.
Now we do not need to set '__maybe_unused' annotations when we are not
enabling the PM configurations.

It fixes the following warnings:
drivers/media/pci/intel/ipu6/ipu6.c:841:12: warning: ‘ipu6_runtime_resume’ defined but not used [-Wunused-function]
drivers/media/pci/intel/ipu6/ipu6.c:806:12: warning: ‘ipu6_resume’ defined but not used [-Wunused-function]
drivers/media/pci/intel/ipu6/ipu6.c:801:12: warning: ‘ipu6_suspend’ defined but not used [-Wunused-function]

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/intel/ipu6/ipu6.c

index 4b1f69d14d712032337a9a780b58765fc0321724..7bcd9c5a381a5b1dd6ed44ee25bd16b6983cc128 100644 (file)
@@ -860,8 +860,8 @@ static int ipu6_runtime_resume(struct device *dev)
 }
 
 static const struct dev_pm_ops ipu6_pm_ops = {
-       SET_SYSTEM_SLEEP_PM_OPS(&ipu6_suspend, &ipu6_resume)
-       SET_RUNTIME_PM_OPS(&ipu6_suspend, &ipu6_runtime_resume, NULL)
+       SYSTEM_SLEEP_PM_OPS(&ipu6_suspend, &ipu6_resume)
+       RUNTIME_PM_OPS(&ipu6_suspend, &ipu6_runtime_resume, NULL)
 };
 
 MODULE_DEVICE_TABLE(pci, ipu6_pci_tbl);