diff options
Diffstat (limited to 'hw/s390-virtio-bus.c')
-rw-r--r-- | hw/s390-virtio-bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/s390-virtio-bus.c b/hw/s390-virtio-bus.c index 6b6dafc196..fa0a74fae4 100644 --- a/hw/s390-virtio-bus.c +++ b/hw/s390-virtio-bus.c @@ -123,7 +123,7 @@ static int s390_virtio_blk_init(VirtIOS390Device *dev) { VirtIODevice *vdev; - vdev = virtio_blk_init((DeviceState *)dev, dev->dinfo); + vdev = virtio_blk_init((DeviceState *)dev, dev->block.dinfo); if (!vdev) { return -1; } @@ -337,7 +337,7 @@ static VirtIOS390DeviceInfo s390_virtio_blk = { .qdev.name = "virtio-blk-s390", .qdev.size = sizeof(VirtIOS390Device), .qdev.props = (Property[]) { - DEFINE_PROP_DRIVE("drive", VirtIOS390Device, dinfo), + DEFINE_BLOCK_PROPERTIES(VirtIOS390Device, block), DEFINE_PROP_END_OF_LIST(), }, }; |