mirror of https://gitee.com/openkylin/qemu.git
virtio-ccw: remove qdev_unparent in unplug routing
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>
This commit is contained in:
parent
fe3cc14fd8
commit
b8a205f2ed
|
@ -865,7 +865,6 @@ static int virtio_ccw_busdev_unplug(DeviceState *dev)
|
||||||
|
|
||||||
css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, 1, 0);
|
css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, 1, 0);
|
||||||
|
|
||||||
object_unparent(OBJECT(dev));
|
|
||||||
qdev_free(dev);
|
qdev_free(dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue