pci: use qdev for device destruction.
commita36a344dcd5c778cc0417df36c5aa8f95c5497c3
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 25 Sep 2009 19:42:37 +0000 (25 21:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:48 +0000 (5 09:32 -0500)
tree785ae177529d7a7f3c7d9ee54c836a18258985c0
parent01985dcf38a94d0db35f54315ba2454e68f16175
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>
hw/pci-hotplug.c
hw/pci.c
hw/pci.h