Skip to content

Commit

Permalink
counter: intel-qep: Mark PM callbacks with __maybe_unused
Browse files Browse the repository at this point in the history
Remove CONFIG_PM ifdef and mark PM callbacks with __maybe_unused.

Suggested-by: Jonathan Cameron <[email protected]>
Signed-off-by: Jarkko Nikula <[email protected]>
Acked-by: William Breathitt Gray <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
jhnikula authored and jic23 committed Jun 13, 2021
1 parent 49bd775 commit ac3bd9d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/counter/intel-qep.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,7 @@ static void intel_qep_remove(struct pci_dev *pci)
intel_qep_writel(qep, INTEL_QEPCON, 0);
}

#ifdef CONFIG_PM
static int intel_qep_suspend(struct device *dev)
static int __maybe_unused intel_qep_suspend(struct device *dev)
{
struct pci_dev *pdev = container_of(dev, struct pci_dev, dev);
struct intel_qep *qep = pci_get_drvdata(pdev);
Expand All @@ -486,7 +485,7 @@ static int intel_qep_suspend(struct device *dev)
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 intel_qep *qep = pci_get_drvdata(pdev);
Expand All @@ -512,7 +511,6 @@ static int intel_qep_resume(struct device *dev)

return 0;
}
#endif

static UNIVERSAL_DEV_PM_OPS(intel_qep_pm_ops,
intel_qep_suspend, intel_qep_resume, NULL);
Expand Down

0 comments on commit ac3bd9d

Please sign in to comment.