summaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-25 21:42:37 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:48 -0500
commitf68f0ba6e306c2ff663a5b5187162a08e965ad45 (patch)
tree785ae177529d7a7f3c7d9ee54c836a18258985c0 /hw/pci.h
parentb31c8dd5600b072bfaf65c9bfa5dc54373350dc4 (diff)
downloadqemu-f68f0ba6e306c2ff663a5b5187162a08e965ad45.tar.gz
qemu-f68f0ba6e306c2ff663a5b5187162a08e965ad45.tar.bz2
qemu-f68f0ba6e306c2ff663a5b5187162a08e965ad45.zip
pci: use qdev for device destruction.
pci_unregister_device is static now and hooked into Devicestate->exit. qdev_free(pci_device) works now. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/pci.h b/hw/pci.h
index c5c8c570d7..9233b5bba8 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -185,7 +185,6 @@ struct PCIDevice {
/* do not access the following fields */
PCIConfigReadFunc *config_read;
PCIConfigWriteFunc *config_write;
- PCIUnregisterFunc *unregister;
/* IRQ objects for the INTA-INTD pins. */
qemu_irq *irq;
@@ -224,7 +223,6 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name,
int instance_size, int devfn,
PCIConfigReadFunc *config_read,
PCIConfigWriteFunc *config_write);
-int pci_unregister_device(PCIDevice *pci_dev);
void pci_register_bar(PCIDevice *pci_dev, int region_num,
uint32_t size, int type,