summaryrefslogtreecommitdiffstats
path: root/hw/char
diff options
context:
space:
mode:
authorPeter Maydell2021-09-23 14:11:51 +0200
committerPeter Maydell2021-09-30 14:42:10 +0200
commitd637e1dc6de0e171dca6fbb5384668c642aa5ab6 (patch)
tree8d1ba46048cf7c6bb01605029cbf3d15a7a81d38 /hw/char
parentpci: Rename pci_root_bus_new_inplace() to pci_root_bus_init() (diff)
downloadqemu-d637e1dc6de0e171dca6fbb5384668c642aa5ab6.tar.gz
qemu-d637e1dc6de0e171dca6fbb5384668c642aa5ab6.tar.xz
qemu-d637e1dc6de0e171dca6fbb5384668c642aa5ab6.zip
qbus: Rename qbus_create_inplace() to qbus_init()
Rename qbus_create_inplace() to qbus_init(); this is more in line with our usual naming convention for functions that in-place initialize objects. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 20210923121153.23754-5-peter.maydell@linaro.org
Diffstat (limited to 'hw/char')
-rw-r--r--hw/char/virtio-serial-bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c
index dd6bc27b3b..f01ec2137c 100644
--- a/hw/char/virtio-serial-bus.c
+++ b/hw/char/virtio-serial-bus.c
@@ -1048,8 +1048,8 @@ static void virtio_serial_device_realize(DeviceState *dev, Error **errp)
config_size);
/* Spawn a new virtio-serial bus on which the ports will ride as devices */
- qbus_create_inplace(&vser->bus, sizeof(vser->bus), TYPE_VIRTIO_SERIAL_BUS,
- dev, vdev->bus_name);
+ qbus_init(&vser->bus, sizeof(vser->bus), TYPE_VIRTIO_SERIAL_BUS,
+ dev, vdev->bus_name);
qbus_set_hotplug_handler(BUS(&vser->bus), OBJECT(vser));
vser->bus.vser = vser;
QTAILQ_INIT(&vser->ports);