aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/virtio-serial-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/virtio/virtio-serial-pci.c')
-rw-r--r--hw/virtio/virtio-serial-pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/virtio/virtio-serial-pci.c b/hw/virtio/virtio-serial-pci.c
index 22ab4d8562..95d25d54da 100644
--- a/hw/virtio/virtio-serial-pci.c
+++ b/hw/virtio/virtio-serial-pci.c
@@ -65,8 +65,7 @@ static void virtio_serial_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
g_free(bus_name);
}
- qdev_set_parent_bus(vdev, BUS(&vpci_dev->bus));
- object_property_set_bool(OBJECT(vdev), true, "realized", errp);
+ qdev_realize(vdev, BUS(&vpci_dev->bus), errp);
}
static Property virtio_serial_pci_properties[] = {