diff options
Diffstat (limited to 'hw/pcnet-pci.c')
-rw-r--r-- | hw/pcnet-pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pcnet-pci.c b/hw/pcnet-pci.c index a25f565..13d9380 100644 --- a/hw/pcnet-pci.c +++ b/hw/pcnet-pci.c @@ -295,9 +295,9 @@ static int pci_pcnet_init(PCIDevice *pci_dev) memory_region_init_io(&d->io_bar, &pcnet_io_ops, d, "pcnet-io", PCNET_IOPORT_SIZE); - pci_register_bar_region(pci_dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &d->io_bar); + pci_register_bar(pci_dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &d->io_bar); - pci_register_bar_region(pci_dev, 1, 0, &s->mmio); + pci_register_bar(pci_dev, 1, 0, &s->mmio); s->irq = pci_dev->irq[0]; s->phys_mem_read = pci_physical_memory_read; |