qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 07/10] unplug: using new intf qdev_delete_subtree in


From: Liu Ping Fan
Subject: [Qemu-devel] [PATCH 07/10] unplug: using new intf qdev_delete_subtree in acpi_piix_eject_slot
Date: Fri, 24 Aug 2012 17:49:20 +0800

From: Liu Ping Fan <address@hidden>

We are not long to force to delete the obj at that place, just
let its refcnt handle this issue.

Signed-off-by: Liu Ping Fan <address@hidden>
---
 hw/acpi_piix4.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
index 0aace60..f00d4d8 100644
--- a/hw/acpi_piix4.c
+++ b/hw/acpi_piix4.c
@@ -305,8 +305,11 @@ static void acpi_piix_eject_slot(PIIX4PMState *s, unsigned 
slots)
             if (pc->no_hotplug) {
                 slot_free = false;
             } else {
+#if 0
                 object_unparent(OBJECT(dev));
                 qdev_free(qdev);
+#endif
+                qdev_delete_subtree(qdev);
             }
         }
     }
-- 
1.7.4.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]