mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
usb: Pass size to usb_bus_new()
To be passed to qbus_create_inplace(). Use DEVICE() cast to avoid a direct parent field access. Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
b1187b51ff
commit
c889b3a55d
7 changed files with 9 additions and 7 deletions
|
|
@ -1881,7 +1881,7 @@ static int usb_ohci_init(OHCIState *ohci, DeviceState *dev,
|
|||
return -1;
|
||||
}
|
||||
} else {
|
||||
usb_bus_new(&ohci->bus, &ohci_bus_ops, dev);
|
||||
usb_bus_new(&ohci->bus, sizeof(ohci->bus), &ohci_bus_ops, dev);
|
||||
for (i = 0; i < num_ports; i++) {
|
||||
usb_register_port(&ohci->bus, &ohci->rhport[i].port,
|
||||
ohci, i, &ohci_port_ops,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue