diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-25 21:42:37 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:48 -0500 |
commit | a36a344dcd5c778cc0417df36c5aa8f95c5497c3 (patch) | |
tree | 785ae177529d7a7f3c7d9ee54c836a18258985c0 /hw/pci-hotplug.c | |
parent | 01985dcf38a94d0db35f54315ba2454e68f16175 (diff) |
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-hotplug.c')
-rw-r--r-- | hw/pci-hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 89974a0668..7e39bddd65 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -251,6 +251,6 @@ void pci_device_hot_remove_success(int pcibus, int slot) break; } - pci_unregister_device(d); + qdev_free(&d->qdev); } |