aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-04-14 20:47:45 -0400
committerRusty Russell <rusty@rustcorp.com.au>2015-04-14 23:11:13 -0400
commitf71d8286c1368f2dbbed5d1b59a574c7f25701e8 (patch)
treedc502398e5737cbabae4cd4623f52e936c76652a /drivers/virtio
parenta62d547c72cd0ed03565b4eb2167536a64bad0f4 (diff)
virtio_pci: support non-legacy balloon devices
virtio_device_is_legacy_only is always false now, drop the test from virtio pci. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio_pci_modern.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c
index cb175f7179d1..e88e0997a889 100644
--- a/drivers/virtio/virtio_pci_modern.c
+++ b/drivers/virtio/virtio_pci_modern.c
@@ -615,9 +615,6 @@ int virtio_pci_modern_probe(struct virtio_pci_device *vp_dev)
615 } 615 }
616 vp_dev->vdev.id.vendor = pci_dev->subsystem_vendor; 616 vp_dev->vdev.id.vendor = pci_dev->subsystem_vendor;
617 617
618 if (virtio_device_is_legacy_only(vp_dev->vdev.id))
619 return -ENODEV;
620
621 /* check for a common config: if not, use legacy mode (bar 0). */ 618 /* check for a common config: if not, use legacy mode (bar 0). */
622 common = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_COMMON_CFG, 619 common = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_COMMON_CFG,
623 IORESOURCE_IO | IORESOURCE_MEM); 620 IORESOURCE_IO | IORESOURCE_MEM);