This replaces the call to pci_allocate_irq() and also allows the corresponding qemu_free_irq() to be removed.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> --- hw/net/pcnet-pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c index 96a302c141..cd2e080b4f 100644 --- a/hw/net/pcnet-pci.c +++ b/hw/net/pcnet-pci.c @@ -182,7 +182,6 @@ static void pci_pcnet_uninit(PCIDevice *dev) { PCIPCNetState *d = PCI_PCNET(dev); - qemu_free_irq(d->state.irq); timer_free(d->state.poll_timer); qemu_del_nic(d->state.nic); } @@ -227,7 +226,7 @@ static void pci_pcnet_realize(PCIDevice *pci_dev, Error **errp) pci_register_bar(pci_dev, 1, 0, &s->mmio); - s->irq = pci_allocate_irq(pci_dev); + s->irq = qdev_get_gpio_in_named(DEVICE(pci_dev), "pci-input-irq", 0); s->phys_mem_read = pci_physical_memory_read; s->phys_mem_write = pci_physical_memory_write; s->dma_opaque = DEVICE(pci_dev); -- 2.30.2