Commit 5eb8c768 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Mauro Carvalho Chehab

media: intel-ipu3: cio2: mark more PM functions as __maybe_unused

My earlier patch missed two functions, these must be __maybe_unused
as well:

drivers/media/pci/intel/ipu3/ipu3-cio2.c:1867:12: error: 'cio2_runtime_resume' defined but not used [-Werror=unused-function]
drivers/media/pci/intel/ipu3/ipu3-cio2.c:1849:12: error: 'cio2_runtime_suspend' defined but not used [-Werror=unused-function]

Fixes: 2086dd35 ("media: intel-ipu3: cio2: mark PM functions as __maybe_unused")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 7952be9b
...@@ -1850,7 +1850,7 @@ static void cio2_pci_remove(struct pci_dev *pci_dev) ...@@ -1850,7 +1850,7 @@ static void cio2_pci_remove(struct pci_dev *pci_dev)
mutex_destroy(&cio2->lock); mutex_destroy(&cio2->lock);
} }
static int cio2_runtime_suspend(struct device *dev) static int __maybe_unused cio2_runtime_suspend(struct device *dev)
{ {
struct pci_dev *pci_dev = to_pci_dev(dev); struct pci_dev *pci_dev = to_pci_dev(dev);
struct cio2_device *cio2 = pci_get_drvdata(pci_dev); struct cio2_device *cio2 = pci_get_drvdata(pci_dev);
...@@ -1868,7 +1868,7 @@ static int cio2_runtime_suspend(struct device *dev) ...@@ -1868,7 +1868,7 @@ static int cio2_runtime_suspend(struct device *dev)
return 0; return 0;
} }
static int cio2_runtime_resume(struct device *dev) static int __maybe_unused cio2_runtime_resume(struct device *dev)
{ {
struct pci_dev *pci_dev = to_pci_dev(dev); struct pci_dev *pci_dev = to_pci_dev(dev);
struct cio2_device *cio2 = pci_get_drvdata(pci_dev); struct cio2_device *cio2 = pci_get_drvdata(pci_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment