]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/s390x/sclp.c
sysbus: Convert to sysbus_realize() etc. with Coccinelle
[thirdparty/qemu.git] / hw / s390x / sclp.c
index 40e27a8cb444bf167f93d76169056bc3d9c4e801..b66afb35c8a9f9c8ff91f1008251ee351e6c3394 100644 (file)
@@ -338,7 +338,7 @@ static void sclp_realize(DeviceState *dev, Error **errp)
      * as we can't find a fitting bus via the qom tree, we have to add the
      * event facility to the sysbus, so e.g. a sclp console can be created.
      */
-    qdev_realize(DEVICE(sclp->event_facility), NULL, &err);
+    sysbus_realize(SYS_BUS_DEVICE(sclp->event_facility), &err);
     if (err) {
         goto out;
     }