]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/virtio/virtio_pci.c
virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
[karo-tx-linux.git] / drivers / virtio / virtio_pci.c
index 1aba255b5879a10243c5426abba873103ff15696..98917fc872a429a1ab3aee94cd7d499bc1dafa25 100644 (file)
@@ -766,7 +766,7 @@ static void virtio_pci_remove(struct pci_dev *pci_dev)
        kfree(vp_dev);
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int virtio_pci_freeze(struct device *dev)
 {
        struct pci_dev *pci_dev = to_pci_dev(dev);
@@ -824,7 +824,7 @@ static struct pci_driver virtio_pci_driver = {
        .id_table       = virtio_pci_id_table,
        .probe          = virtio_pci_probe,
        .remove         = virtio_pci_remove,
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
        .driver.pm      = &virtio_pci_pm_ops,
 #endif
 };