]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/s390x/ccw-device.c
hw/fsi: Introduce IBM's FSI master
[mirror_qemu.git] / hw / s390x / ccw-device.c
index 4d222ad2024f4ef2c7583f4f3e8796d02bec22a6..fb8c1acc64d5002c861a4913f292d8346dbef192 100644 (file)
@@ -57,15 +57,16 @@ static void ccw_device_class_init(ObjectClass *klass, void *data)
 
     k->realize = ccw_device_realize;
     k->refill_ids = ccw_device_refill_ids;
-    dc->props = ccw_device_properties;
+    device_class_set_props(dc, ccw_device_properties);
     dc->reset = ccw_device_reset;
+    dc->bus_type = TYPE_VIRTUAL_CSS_BUS;
 }
 
 const VMStateDescription vmstate_ccw_dev = {
     .name = "s390_ccw_dev",
     .version_id = 1,
     .minimum_version_id = 1,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_STRUCT_POINTER(sch, CcwDevice, vmstate_subch_dev, SubchDev),
         VMSTATE_END_OF_LIST()
     }