From 0beb4942071e385c16deba03848898865842edc7 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Thu, 22 Dec 2011 15:29:25 -0600 Subject: qdev: nuke qdev_init_chardev() I'm sure the intentions were good here, but there's no reason this should be in qdev. Move it to qemu-char where it belongs. Signed-off-by: Anthony Liguori --- hw/qdev.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'hw/qdev.c') diff --git a/hw/qdev.c b/hw/qdev.c index e82165d..0692a21 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -336,15 +336,6 @@ bool qdev_machine_modified(void) return qdev_hot_added || qdev_hot_removed; } -/* Get a character (serial) device interface. */ -CharDriverState *qdev_init_chardev(DeviceState *dev) -{ - static int next_serial; - - /* FIXME: This function needs to go away: use chardev properties! */ - return serial_hds[next_serial++]; -} - BusState *qdev_get_parent_bus(DeviceState *dev) { return dev->parent_bus; -- cgit v1.1