mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
qdev: Pass size to qbus_create_inplace()
To be passed to object_initialize().
Since commit 39355c3826
the argument is
void*, so drop some superfluous (BusState *) casts or direct parent
field usages.
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
e5f720391e
commit
fb17dfe057
19 changed files with 28 additions and 25 deletions
|
@ -276,8 +276,8 @@ static void main_system_bus_create(void)
|
|||
/* assign main_system_bus before qbus_create_inplace()
|
||||
* in order to make "if (bus != sysbus_get_default())" work */
|
||||
main_system_bus = g_malloc0(system_bus_info.instance_size);
|
||||
qbus_create_inplace(main_system_bus, TYPE_SYSTEM_BUS, NULL,
|
||||
"main-system-bus");
|
||||
qbus_create_inplace(main_system_bus, system_bus_info.instance_size,
|
||||
TYPE_SYSTEM_BUS, NULL, "main-system-bus");
|
||||
OBJECT(main_system_bus)->free = g_free;
|
||||
object_property_add_child(container_get(qdev_get_machine(),
|
||||
"/unattached"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue