diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-04-14 20:47:45 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-04-14 23:11:12 -0400 |
commit | a62d547c72cd0ed03565b4eb2167536a64bad0f4 (patch) | |
tree | 02d6b7d79e50f7674ba13fae658ace11af944d56 | |
parent | 2003a7a5b66fee3b1b90daa1ace62a8d762d4a34 (diff) |
virtio_mmio: support non-legacy balloon devices
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>
-rw-r--r-- | drivers/virtio/virtio_mmio.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 6010d7ec0a0f..7a5e60dea6c5 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c | |||
@@ -581,14 +581,6 @@ static int virtio_mmio_probe(struct platform_device *pdev) | |||
581 | } | 581 | } |
582 | vm_dev->vdev.id.vendor = readl(vm_dev->base + VIRTIO_MMIO_VENDOR_ID); | 582 | vm_dev->vdev.id.vendor = readl(vm_dev->base + VIRTIO_MMIO_VENDOR_ID); |
583 | 583 | ||
584 | /* Reject legacy-only IDs for version 2 devices */ | ||
585 | if (vm_dev->version == 2 && | ||
586 | virtio_device_is_legacy_only(vm_dev->vdev.id)) { | ||
587 | dev_err(&pdev->dev, "Version 2 not supported for devices %u!\n", | ||
588 | vm_dev->vdev.id.device); | ||
589 | return -ENODEV; | ||
590 | } | ||
591 | |||
592 | if (vm_dev->version == 1) | 584 | if (vm_dev->version == 1) |
593 | writel(PAGE_SIZE, vm_dev->base + VIRTIO_MMIO_GUEST_PAGE_SIZE); | 585 | writel(PAGE_SIZE, vm_dev->base + VIRTIO_MMIO_GUEST_PAGE_SIZE); |
594 | 586 | ||