diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2021-09-23 13:11:52 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2021-09-30 13:44:08 +0100 |
| commit | 9388d1701efa87095d31ed5f68793dfc82cdd47e (patch) | |
| tree | 8883139092112b5341122c18ddc3c50158c23769 /hw/xen/xen-bus.c | |
| parent | d637e1dc6de0e171dca6fbb5384668c642aa5ab6 (diff) | |
| download | focaccia-qemu-9388d1701efa87095d31ed5f68793dfc82cdd47e.tar.gz focaccia-qemu-9388d1701efa87095d31ed5f68793dfc82cdd47e.zip | |
qbus: Rename qbus_create() to qbus_new()
Rename the "allocate and return" qbus creation function to qbus_new(), to bring it into line with our _init vs _new convention. 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> Reviewed-by: Corey Minyard <cminyard@mvista.com> Message-id: 20210923121153.23754-6-peter.maydell@linaro.org
Diffstat (limited to 'hw/xen/xen-bus.c')
| -rw-r--r-- | hw/xen/xen-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen/xen-bus.c b/hw/xen/xen-bus.c index 8c588920d9..416583f130 100644 --- a/hw/xen/xen-bus.c +++ b/hw/xen/xen-bus.c @@ -1398,7 +1398,7 @@ type_init(xen_register_types) void xen_bus_init(void) { DeviceState *dev = qdev_new(TYPE_XEN_BRIDGE); - BusState *bus = qbus_create(TYPE_XEN_BUS, dev, NULL); + BusState *bus = qbus_new(TYPE_XEN_BUS, dev, NULL); sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); qbus_set_bus_hotplug_handler(bus); |