mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -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
|
@ -90,7 +90,8 @@ static void icc_bridge_init(Object *obj)
|
|||
ICCBridgeState *s = ICC_BRIGDE(obj);
|
||||
SysBusDevice *sb = SYS_BUS_DEVICE(obj);
|
||||
|
||||
qbus_create_inplace(&s->icc_bus, TYPE_ICC_BUS, DEVICE(s), "icc");
|
||||
qbus_create_inplace(&s->icc_bus, sizeof(s->icc_bus), TYPE_ICC_BUS,
|
||||
DEVICE(s), "icc");
|
||||
|
||||
/* Do not change order of registering regions,
|
||||
* APIC must be first registered region, board maps it by 0 index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue