diff options
author | Marcel Apfelbaum <marcel.a@redhat.com> | 2013-10-07 10:36:41 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-10-14 17:11:45 +0300 |
commit | c31d04b516b183b02336f8cce65a41bd547f6f6b (patch) | |
tree | 1aebeb967a39378c80ea1f1b6e38da541cf73a86 /hw | |
parent | 5a03e708f213c716c9dde11e8ab4b23b8ca5c066 (diff) |
hw/pci: removed irq field from PCIDevice
Instead of exposing the the irq field,
pci wrappers to qemu_set_irq or qemu_irq_*
can be used.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pci/pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/pci/pci.c b/hw/pci/pci.c index ff4b697cce..ae23c58c14 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -889,14 +889,12 @@ static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, pci_dev->config_read = config_read; pci_dev->config_write = config_write; bus->devices[devfn] = pci_dev; - pci_dev->irq = qemu_allocate_irqs(pci_irq_handler, pci_dev, PCI_NUM_PINS); pci_dev->version_id = 2; /* Current pci device vmstate version */ return pci_dev; } static void do_pci_unregister_device(PCIDevice *pci_dev) { - qemu_free_irqs(pci_dev->irq); pci_dev->bus->devices[pci_dev->devfn] = NULL; pci_config_free(pci_dev); |