diff options
author | Anthony Liguori | 2012-01-30 15:55:55 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-02-03 17:41:08 +0100 |
commit | 57c9fafe0f759c9f1efa5451662b3627f9bb95e0 (patch) | |
tree | 6a097cdea9a82e94cbd696a45e3e5faac917881b /hw/pci.c | |
parent | qdev: nuke qdev_init_chardev() (diff) | |
download | qemu-57c9fafe0f759c9f1efa5451662b3627f9bb95e0.tar.gz qemu-57c9fafe0f759c9f1efa5451662b3627f9bb95e0.tar.xz qemu-57c9fafe0f759c9f1efa5451662b3627f9bb95e0.zip |
qom: move properties from qdev to object
This is mostly code movement although not entirely. This makes properties part
of the Object base class which means that we can now start using Object in a
meaningful way outside of qdev.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1517,6 +1517,7 @@ 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); } |