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>
This commit is contained in:
Gerd Hoffmann 2009-09-25 21:42:37 +02:00 committed by Anthony Liguori
parent 01985dcf38
commit a36a344dcd
3 changed files with 4 additions and 5 deletions

View file

@ -251,6 +251,6 @@ void pci_device_hot_remove_success(int pcibus, int slot)
break;
}
pci_unregister_device(d);
qdev_free(&d->qdev);
}