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>
This commit is contained in:
parent
dfe8c79c44
commit
30884d1b83
|
@ -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));
|
const char *typename = object_get_typename(OBJECT(bus));
|
||||||
BusClass *bc;
|
BusClass *bc;
|
||||||
|
@ -151,7 +151,7 @@ void qbus_create_inplace(void *bus, size_t size, const char *typename,
|
||||||
DeviceState *parent, const char *name)
|
DeviceState *parent, const char *name)
|
||||||
{
|
{
|
||||||
object_initialize(bus, size, typename);
|
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)
|
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;
|
BusState *bus;
|
||||||
|
|
||||||
bus = BUS(object_new(typename));
|
bus = BUS(object_new(typename));
|
||||||
qbus_realize(bus, parent, name);
|
qbus_init(bus, parent, name);
|
||||||
|
|
||||||
return bus;
|
return bus;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue