diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-23 20:32:04 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-08-30 20:14:39 +0200 |
commit | c889b3a55d5d1d18042693cbe2f8f05465914ff4 (patch) | |
tree | 1d019bceebdf629781739c56fdd599dc3f20bde0 /include | |
parent | b1187b51ff5563135da0a9e5c855d7876ab1a926 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/usb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h index 901b0da8b0..1b8acba6f6 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -496,7 +496,8 @@ struct USBBusOps { void (*wakeup_endpoint)(USBBus *bus, USBEndpoint *ep, unsigned int stream); }; -void usb_bus_new(USBBus *bus, USBBusOps *ops, DeviceState *host); +void usb_bus_new(USBBus *bus, size_t bus_size, + USBBusOps *ops, DeviceState *host); USBBus *usb_bus_find(int busnr); void usb_legacy_register(const char *typename, const char *usbdevice_name, USBDevice *(*usbdevice_init)(USBBus *bus, |