Revision 8f1c91d8 hw/piix_pci.c

b/hw/piix_pci.c
196 196

  
197 197
/* PIIX3 PCI to ISA bridge */
198 198

  
199
static PCIDevice *piix3_dev;
199
PCIDevice *piix3_dev;
200 200

  
201 201
/* just used for simpler irq handling. */
202 202
#define PCI_IRQ_WORDS   ((PCI_DEVICES_MAX + 31) / 32)
......
273 273
    return pci_device_load(d, f);
274 274
}
275 275

  
276
int piix3_init(PCIBus *bus)
276
int piix3_init(PCIBus *bus, int devfn)
277 277
{
278 278
    PCIDevice *d;
279 279
    uint8_t *pci_conf;
280 280

  
281 281
    d = pci_register_device(bus, "PIIX3", sizeof(PCIDevice),
282
                                    -1, NULL, NULL);
282
                                    devfn, NULL, NULL);
283 283
    register_savevm("PIIX3", 0, 2, piix_save, piix_load, d);
284 284

  
285 285
    piix3_dev = d;

Also available in: Unified diff