]> git.proxmox.com Git - qemu.git/commit
qdev: Add a 'free' method to disassociate chardev from qdev device
authorAmit Shah <amit.shah@redhat.com>
Fri, 13 Jan 2012 09:59:47 +0000 (15:29 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 13 Jan 2012 16:21:03 +0000 (10:21 -0600)
commita87f3e8b080205879232f34ff6977cb225b70e05
tree48286f5ab9312d3bc618d4119297a9f8c30e4ede
parent8600361542d64572ad24e04bc25c1ac42000d6d6
qdev: Add a 'free' method to disassociate chardev from qdev device

When a device is removed, remove the association with a chardev, if any,
so that the chardev can be re-used later for other devices.

Reported-by: Qunfang Zhang <qzhang@redhat.com>
Fix-suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-properties.c