]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: vmd: Fix suspend handlers defined-but-not-used warning
authorBorislav Petkov <bp@suse.de>
Sat, 26 Nov 2016 18:29:57 +0000 (19:29 +0100)
committerBjorn Helgaas <helgaas@kernel.org>
Wed, 7 Dec 2016 18:17:27 +0000 (12:17 -0600)
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>
drivers/pci/host/vmd.c

index 6c5b7fd9f0c5f100b90d1b712a1dcf188f99b528..18ef1a93c10ac191cec6b26760533a644f0c1934 100644 (file)
@@ -741,7 +741,7 @@ static void vmd_remove(struct pci_dev *dev)
        irq_domain_remove(vmd->irq_domain);
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int vmd_suspend(struct device *dev)
 {
        struct pci_dev *pdev = to_pci_dev(dev);