aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/bus.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-08-23 20:32:04 +0200
committerAndreas Färber <afaerber@suse.de>2013-08-30 20:14:39 +0200
commitc889b3a55d5d1d18042693cbe2f8f05465914ff4 (patch)
tree1d019bceebdf629781739c56fdd599dc3f20bde0 /hw/usb/bus.c
parentb1187b51ff5563135da0a9e5c855d7876ab1a926 (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 'hw/usb/bus.c')
-rw-r--r--hw/usb/bus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb/bus.c b/hw/usb/bus.c
index f83d1de6cd..6aee26239e 100644
--- a/hw/usb/bus.c
+++ b/hw/usb/bus.c
@@ -67,7 +67,8 @@ const VMStateDescription vmstate_usb_device = {
}
};
-void usb_bus_new(USBBus *bus, USBBusOps *ops, DeviceState *host)
+void usb_bus_new(USBBus *bus, size_t bus_size,
+ USBBusOps *ops, DeviceState *host)
{
qbus_create_inplace(&bus->qbus, TYPE_USB_BUS, host, NULL);
bus->ops = ops;