Revision 3a26360d hw/spapr_pci.c

b/hw/spapr_pci.c
51 51
            continue;
52 52
        }
53 53

  
54
        QLIST_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
54
        QTAILQ_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
55 55
            PCIDevice *dev = (PCIDevice *)qdev;
56 56
            if (dev->devfn == devfn) {
57 57
                return dev;
......
397 397

  
398 398
    /* Populate PCI devices and allocate IRQs */
399 399
    devices = 0;
400
    QLIST_FOREACH(qdev, &bus->qbus.children, sibling) {
400
    QTAILQ_FOREACH(qdev, &bus->qbus.children, sibling) {
401 401
        PCIDevice *dev = DO_UPCAST(PCIDevice, qdev, qdev);
402 402
        int irq_index = pci_spapr_map_irq(dev, 0);
403 403
        uint32_t *irqmap = interrupt_map[devices];

Also available in: Unified diff