Patchwork [1/2] virtio-ccw: remove qdev_unparent in unplug routing

login
register
mail settings
Submitter Cornelia Huck
Date March 11, 2013, 3:52 p.m.
Message ID <1363017177-27666-2-git-send-email-cornelia.huck@de.ibm.com>
Download mbox | patch
Permalink /patch/226576/
State New
Headers show

Comments

Cornelia Huck - March 11, 2013, 3:52 p.m.
From: Christian Borntraeger <borntraeger@de.ibm.com>

This patch fixes unplugging a virtio-ccw device. We no
longer need to do that in virtio-ccw since common code does now
proper handling.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
---
 hw/s390x/virtio-ccw.c |    1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index a9cf703..06b9641 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -865,7 +865,6 @@  static int virtio_ccw_busdev_unplug(DeviceState *dev)
 
     css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, 1, 0);
 
-    object_unparent(OBJECT(dev));
     qdev_free(dev);
     return 0;
 }