virtio_mmio: support non-legacy balloon devices
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 15 Apr 2015 00:47:45 +0000 (10:17 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 15 Apr 2015 03:11:12 +0000 (12:41 +0930)
virtio_device_is_legacy_only is always false now,
drop the test from virtio mmio.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_mmio.c

index 6010d7ec0a0f899b7b7690d202e9b57c6dbc7193..7a5e60dea6c59267ef48efa42ac2091346616b57 100644 (file)
@@ -581,14 +581,6 @@ static int virtio_mmio_probe(struct platform_device *pdev)
        }
        vm_dev->vdev.id.vendor = readl(vm_dev->base + VIRTIO_MMIO_VENDOR_ID);
 
-       /* Reject legacy-only IDs for version 2 devices */
-       if (vm_dev->version == 2 &&
-                       virtio_device_is_legacy_only(vm_dev->vdev.id)) {
-               dev_err(&pdev->dev, "Version 2 not supported for devices %u!\n",
-                               vm_dev->vdev.id.device);
-               return -ENODEV;
-       }
-
        if (vm_dev->version == 1)
                writel(PAGE_SIZE, vm_dev->base + VIRTIO_MMIO_GUEST_PAGE_SIZE);