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

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

virtio_ccw: support non-legacy balloon devices



As of last patch, virtio_device_is_legacy_only is always false,
drop the test from virtio ccw.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (slight reword)
parent 2343dabc
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1201,13 +1201,9 @@ static int virtio_ccw_online(struct ccw_device *cdev)
	vcdev->vdev.id.vendor = cdev->id.cu_type;
	vcdev->vdev.id.device = cdev->id.cu_model;

	if (virtio_device_is_legacy_only(vcdev->vdev.id)) {
		vcdev->revision = 0;
	} else {
	ret = virtio_ccw_set_transport_rev(vcdev);
	if (ret)
		goto out_free;
	}

	ret = register_virtio_device(&vcdev->vdev);
	if (ret) {