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 /hw/usb/hcd-xhci.c | |
parent | b1187b51ff5563135da0a9e5c855d7876ab1a926 (diff) | |
download | qemu-c889b3a55d5d1d18042693cbe2f8f05465914ff4.zip qemu-c889b3a55d5d1d18042693cbe2f8f05465914ff4.tar.gz qemu-c889b3a55d5d1d18042693cbe2f8f05465914ff4.tar.bz2 |
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/hcd-xhci.c')
-rw-r--r-- | hw/usb/hcd-xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index be6b86e..d5c6588 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -3309,7 +3309,7 @@ static void usb_xhci_init(XHCIState *xhci) usbports = MAX(xhci->numports_2, xhci->numports_3); xhci->numports = xhci->numports_2 + xhci->numports_3; - usb_bus_new(&xhci->bus, &xhci_bus_ops, dev); + usb_bus_new(&xhci->bus, sizeof(xhci->bus), &xhci_bus_ops, dev); for (i = 0; i < usbports; i++) { speedmask = 0; |