Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42db500a authored by Borislav Petkov's avatar Borislav Petkov Committed by Bjorn Helgaas
Browse files

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: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarBjorn Helgaas <helgaas@kernel.org>
Reviewed-by: default avatarKeith Busch <keith.busch@intel.com>
parent 3906b918
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -741,7 +741,7 @@ static void vmd_remove(struct pci_dev *dev)
	irq_domain_remove(vmd->irq_domain);
	irq_domain_remove(vmd->irq_domain);
}
}


#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int vmd_suspend(struct device *dev)
static int vmd_suspend(struct device *dev)
{
{
	struct pci_dev *pdev = to_pci_dev(dev);
	struct pci_dev *pdev = to_pci_dev(dev);