Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a62d547c authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Rusty Russell
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarPawel Moll <pawel.moll@arm.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 2003a7a5
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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);