mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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:
parent
01985dcf38
commit
a36a344dcd
3 changed files with 4 additions and 5 deletions
|
@ -251,6 +251,6 @@ void pci_device_hot_remove_success(int pcibus, int slot)
|
|||
break;
|
||||
}
|
||||
|
||||
pci_unregister_device(d);
|
||||
qdev_free(&d->qdev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue