summaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_pci_common.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-12-11 20:47:49 +0100
committerMichael S. Tsirkin <mst@redhat.com>2014-12-14 14:10:30 +0100
commit9a4253db0c4ea1b6b15aa289203bc0584298278e (patch)
tree2c3bc1790be312a8eb5747c71105e6b27c09b362 /drivers/virtio/virtio_pci_common.h
parentvirtio_pci_common.h: drop VIRTIO_PCI_NO_LEGACY (diff)
downloadlinux-9a4253db0c4ea1b6b15aa289203bc0584298278e.tar.xz
linux-9a4253db0c4ea1b6b15aa289203bc0584298278e.zip
virtio_pci: move probe to common file
It turns out this make everything easier. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_pci_common.h')
-rw-r--r--drivers/virtio/virtio_pci_common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/virtio/virtio_pci_common.h b/drivers/virtio/virtio_pci_common.h
index 38d99adcc74a..adddb647b21d 100644
--- a/drivers/virtio/virtio_pci_common.h
+++ b/drivers/virtio/virtio_pci_common.h
@@ -128,8 +128,8 @@ const char *vp_bus_name(struct virtio_device *vdev);
int vp_set_vq_affinity(struct virtqueue *vq, int cpu);
void virtio_pci_release_dev(struct device *);
-#ifdef CONFIG_PM_SLEEP
-extern const struct dev_pm_ops virtio_pci_pm_ops;
-#endif
+int virtio_pci_legacy_probe(struct pci_dev *pci_dev,
+ const struct pci_device_id *id);
+void virtio_pci_legacy_remove(struct pci_dev *pci_dev);
#endif