From 3631e6c8c263528ca159707b9255117a2c3bb175 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 30 Jun 2011 12:05:19 +0200 Subject: 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 Signed-off-by: Gerd Hoffmann --- hw/usb-uhci.c | 1 - 1 file changed, 1 deletion(-) (limited to 'hw/usb-uhci.c') diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 405fa7b65e..fd25d2ae0c 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -1129,7 +1129,6 @@ static int usb_uhci_common_initfn(PCIDevice *dev) for(i = 0; i < NB_PORTS; i++) { usb_register_port(&s->bus, &s->ports[i].port, s, i, &uhci_port_ops, USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL); - usb_port_location(&s->ports[i].port, NULL, i+1); } s->frame_timer = qemu_new_timer_ns(vm_clock, uhci_frame_timer, s); s->num_ports_vmstate = NB_PORTS; -- cgit v1.2.3