|
@@ -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
|
|
|
};
|