aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-ehci.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-06-30 12:05:19 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-07-05 15:09:02 +0200
commit3631e6c8c263528ca159707b9255117a2c3bb175 (patch)
treedb1421599e0f27f772beaeea6367ab1b389e8f86 /hw/usb-ehci.c
parent090ac6425accf5d87be5ff8087080c876a2904e5 (diff)
downloadqemu-3631e6c8c263528ca159707b9255117a2c3bb175.zip
qemu-3631e6c8c263528ca159707b9255117a2c3bb175.tar.gz
qemu-3631e6c8c263528ca159707b9255117a2c3bb175.tar.bz2
usb: Move (initial) call of usb_port_location to usb_fill_port
Cleanup / preparation patch for companion controller support. Note that as a "side-effect" this patch also fixes the milkymist-softusb controller not having a port_location set for its ports. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-ehci.c')
-rw-r--r--hw/usb-ehci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index 91fb7de..88cb2c2 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -2206,7 +2206,6 @@ static int usb_ehci_initfn(PCIDevice *dev)
for(i = 0; i < NB_PORTS; i++) {
usb_register_port(&s->bus, &s->ports[i], s, i, &ehci_port_ops,
USB_SPEED_MASK_HIGH);
- usb_port_location(&s->ports[i], NULL, i+1);
s->ports[i].dev = 0;
}