Revision 0d92ed30 hw/usb-uhci.c

b/hw/usb-uhci.c
638 638
    register_ioport_read(addr, 32, 1, uhci_ioport_readb, s);
639 639
}
640 640

  
641
void usb_uhci_init(PCIBus *bus, USBPort **usb_ports, int devfn)
641
void usb_uhci_init(PCIBus *bus, int devfn)
642 642
{
643 643
    UHCIState *s;
644 644
    uint8_t *pci_conf;
645
    UHCIPort *port;
646 645
    int i;
647 646

  
648 647
    s = (UHCIState *)pci_register_device(bus,
......
662 661
    pci_conf[0x60] = 0x10; // release number
663 662
    
664 663
    for(i = 0; i < NB_PORTS; i++) {
665
        port = &s->ports[i];
666
        port->port.opaque = s;
667
        port->port.index = i;
668
        port->port.attach = uhci_attach;
669
        usb_ports[i] = &port->port;
664
        qemu_register_usb_port(&s->ports[i].port, s, i, uhci_attach);
670 665
    }
671 666
    s->frame_timer = qemu_new_timer(vm_clock, uhci_frame_timer, s);
672 667

  

Also available in: Unified diff