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
|
@ -70,7 +70,7 @@ const VMStateDescription vmstate_usb_device = {
|
|||
void usb_bus_new(USBBus *bus, size_t bus_size,
|
||||
USBBusOps *ops, DeviceState *host)
|
||||
{
|
||||
qbus_create_inplace(&bus->qbus, TYPE_USB_BUS, host, NULL);
|
||||
qbus_create_inplace(bus, bus_size, TYPE_USB_BUS, host, NULL);
|
||||
bus->ops = ops;
|
||||
bus->busnr = next_usb_bus++;
|
||||
bus->qbus.allow_hotplug = 1; /* Yes, we can */
|
||||
|
|
|
@ -1309,7 +1309,8 @@ static int ccid_initfn(USBDevice *dev)
|
|||
|
||||
usb_desc_create_serial(dev);
|
||||
usb_desc_init(dev);
|
||||
qbus_create_inplace(&s->bus.qbus, TYPE_CCID_BUS, &dev->qdev, NULL);
|
||||
qbus_create_inplace(&s->bus, sizeof(s->bus), TYPE_CCID_BUS, DEVICE(dev),
|
||||
NULL);
|
||||
s->intr = usb_ep_get(dev, USB_TOKEN_IN, CCID_INT_IN_EP);
|
||||
s->bus.qbus.allow_hotplug = 1;
|
||||
s->card = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue