counter: intel-qep: Mark PM callbacks with __maybe_unused

Remove CONFIG_PM ifdef and mark PM callbacks with __maybe_unused.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Link: https://lore.kernel.org/r/20210611115558.796338-1-jarkko.nikula@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Jarkko Nikula 2021-06-11 14:55:57 +03:00 коммит произвёл Jonathan Cameron
Родитель 49bd77560f
Коммит ac3bd9d6b1
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -473,8 +473,7 @@ static void intel_qep_remove(struct pci_dev *pci)
intel_qep_writel(qep, INTEL_QEPCON, 0); intel_qep_writel(qep, INTEL_QEPCON, 0);
} }
#ifdef CONFIG_PM static int __maybe_unused intel_qep_suspend(struct device *dev)
static int intel_qep_suspend(struct device *dev)
{ {
struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); struct pci_dev *pdev = container_of(dev, struct pci_dev, dev);
struct intel_qep *qep = pci_get_drvdata(pdev); struct intel_qep *qep = pci_get_drvdata(pdev);
@ -486,7 +485,7 @@ static int intel_qep_suspend(struct device *dev)
return 0; return 0;
} }
static int intel_qep_resume(struct device *dev) static int __maybe_unused intel_qep_resume(struct device *dev)
{ {
struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); struct pci_dev *pdev = container_of(dev, struct pci_dev, dev);
struct intel_qep *qep = pci_get_drvdata(pdev); struct intel_qep *qep = pci_get_drvdata(pdev);
@ -512,7 +511,6 @@ static int intel_qep_resume(struct device *dev)
return 0; return 0;
} }
#endif
static UNIVERSAL_DEV_PM_OPS(intel_qep_pm_ops, static UNIVERSAL_DEV_PM_OPS(intel_qep_pm_ops,
intel_qep_suspend, intel_qep_resume, NULL); intel_qep_suspend, intel_qep_resume, NULL);