diff options
author | Borislav Petkov <bp@suse.de> | 2016-11-26 13:29:57 -0500 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2016-12-07 13:17:27 -0500 |
commit | 42db500a551f97551a901e2258f84a60baf4edfc (patch) | |
tree | 0b08493df9ae2e676209c4e96800f54e926078d3 /drivers/pci/host/vmd.c | |
parent | 3906b91844d603153c094f636205ec9aa5454b2f (diff) |
PCI: vmd: Fix suspend handlers defined-but-not-used warning
Fix the following warnings:
drivers/pci/host/vmd.c:731:12: warning: ‘vmd_suspend’ defined but not used [-Wunused-function]
static int vmd_suspend(struct device *dev)
^
drivers/pci/host/vmd.c:739:12: warning: ‘vmd_resume’ defined but not used [-Wunused-function]
static int vmd_resume(struct device *dev)
^
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Diffstat (limited to 'drivers/pci/host/vmd.c')
-rw-r--r-- | drivers/pci/host/vmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c index 6c5b7fd9f0c5..18ef1a93c10a 100644 --- a/drivers/pci/host/vmd.c +++ b/drivers/pci/host/vmd.c | |||
@@ -741,7 +741,7 @@ static void vmd_remove(struct pci_dev *dev) | |||
741 | irq_domain_remove(vmd->irq_domain); | 741 | irq_domain_remove(vmd->irq_domain); |
742 | } | 742 | } |
743 | 743 | ||
744 | #ifdef CONFIG_PM | 744 | #ifdef CONFIG_PM_SLEEP |
745 | static int vmd_suspend(struct device *dev) | 745 | static int vmd_suspend(struct device *dev) |
746 | { | 746 | { |
747 | struct pci_dev *pdev = to_pci_dev(dev); | 747 | struct pci_dev *pdev = to_pci_dev(dev); |