mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
drive cleanup fixes.
Changes: * drive_uninit() wants a DriveInfo now. * drive_uninit() also calls bdrv_delete(), so callers don't need to do that. * drive_uninit() calls are moved over to the ->exit() callbacks, destroy_bdrvs() is zapped. * setting bdrv->private is not needed any more as the only user (destroy_bdrvs) is gone. * usb-storage needs no drive_uninit, scsi-disk will handle that. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3f84865ade
commit
56a1493880
9 changed files with 25 additions and 43 deletions
|
@ -234,9 +234,6 @@ void pci_device_hot_remove_success(PCIDevice *d)
|
|||
class_code = d->config_read(d, PCI_CLASS_DEVICE+1, 1);
|
||||
|
||||
switch(class_code) {
|
||||
case PCI_BASE_CLASS_STORAGE:
|
||||
destroy_bdrvs(pci_match_fn, d);
|
||||
break;
|
||||
case PCI_BASE_CLASS_NETWORK:
|
||||
destroy_nic(pci_match_fn, d);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue