mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24: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
|
@ -75,7 +75,7 @@ static void scsi_device_unit_attention_reported(SCSIDevice *s)
|
|||
void scsi_bus_new(SCSIBus *bus, size_t bus_size, DeviceState *host,
|
||||
const SCSIBusInfo *info, const char *bus_name)
|
||||
{
|
||||
qbus_create_inplace(&bus->qbus, TYPE_SCSI_BUS, host, bus_name);
|
||||
qbus_create_inplace(bus, bus_size, TYPE_SCSI_BUS, host, bus_name);
|
||||
bus->busnr = next_scsi_bus++;
|
||||
bus->info = info;
|
||||
bus->qbus.allow_hotplug = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue