From 57c9fafe0f759c9f1efa5451662b3627f9bb95e0 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Mon, 30 Jan 2012 08:55:55 -0600 Subject: 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 --- hw/pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/pci.c') diff --git a/hw/pci.c b/hw/pci.c index 1df05ae3a0..5f4f80ed10 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -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); } -- cgit v1.2.3