diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-06-10 07:31:50 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-06-15 21:36:30 +0200 |
commit | 30884d1b837fb09f9dba3a770325e228ec2335b4 (patch) | |
tree | e0e4694494a7db992fdc142a79563b5d8004b138 /hw/core/bus.c | |
parent | dfe8c79c44680e34eac2e8abd0d0c885ce01aa55 (diff) | |
download | qemu-30884d1b837fb09f9dba3a770325e228ec2335b4.zip qemu-30884d1b837fb09f9dba3a770325e228ec2335b4.tar.gz qemu-30884d1b837fb09f9dba3a770325e228ec2335b4.tar.bz2 |
qdev: Rename qbus_realize() to qbus_init()
qbus_realize() does not actually realize. Rename it to qbus_init().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-2-armbru@redhat.com>
Diffstat (limited to 'hw/core/bus.c')
-rw-r--r-- | hw/core/bus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/core/bus.c b/hw/core/bus.c index 5092479..33a4443 100644 --- a/hw/core/bus.c +++ b/hw/core/bus.c @@ -95,7 +95,7 @@ static void bus_reset_child_foreach(Object *obj, ResettableChildCallback cb, } } -static void qbus_realize(BusState *bus, DeviceState *parent, const char *name) +static void qbus_init(BusState *bus, DeviceState *parent, const char *name) { const char *typename = object_get_typename(OBJECT(bus)); BusClass *bc; @@ -151,7 +151,7 @@ void qbus_create_inplace(void *bus, size_t size, const char *typename, DeviceState *parent, const char *name) { object_initialize(bus, size, typename); - qbus_realize(bus, parent, name); + qbus_init(bus, parent, name); } BusState *qbus_create(const char *typename, DeviceState *parent, const char *name) @@ -159,7 +159,7 @@ BusState *qbus_create(const char *typename, DeviceState *parent, const char *nam BusState *bus; bus = BUS(object_new(typename)); - qbus_realize(bus, parent, name); + qbus_init(bus, parent, name); return bus; } |