aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pci.c')
-rw-r--r--hw/pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 68e5232ed..e4fefb311 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -1622,7 +1622,6 @@ static int pci_unplug_device(DeviceState *qdev)
qerror_report(QERR_DEVICE_NO_HOTPLUG, object_get_typename(OBJECT(dev)));
return -1;
}
- object_unparent(OBJECT(dev));
return dev->bus->hotplug(dev->bus->hotplug_qdev, dev,
PCI_HOTPLUG_DISABLED);
}