]> git.proxmox.com Git - qemu.git/blobdiff - hw/pci/pcie.c
openrisc-timer: Reduce overhead, Separate clock update functions
[qemu.git] / hw / pci / pcie.c
index 268a69664654b8816f835c708c105ba4c9ce2421..ca60cf21774a775e0010f5d36784cefe8e1bdc6c 100644 (file)
@@ -251,7 +251,7 @@ static int pcie_cap_slot_hotplug(DeviceState *qdev,
                                    PCI_EXP_SLTSTA_PDS);
         pcie_cap_slot_event(d, PCI_EXP_HP_EV_PDC);
     } else {
-        qdev_free(&pci_dev->qdev);
+        object_unparent(OBJECT(pci_dev));
         pci_word_test_and_clear_mask(exp_cap + PCI_EXP_SLTSTA,
                                      PCI_EXP_SLTSTA_PDS);
         pcie_cap_slot_event(d, PCI_EXP_HP_EV_PDC);