diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-22 15:29:25 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-03 10:41:08 -0600 |
commit | 0beb4942071e385c16deba03848898865842edc7 (patch) | |
tree | ec52218b7cfa3db09db0afc8317a0cc1d4e5ebaf /hw/etraxfs_ser.c | |
parent | ee46d8a5038d06babb6cfb0a177727d85df9b3fc (diff) | |
download | qemu-0beb4942071e385c16deba03848898865842edc7.zip qemu-0beb4942071e385c16deba03848898865842edc7.tar.gz qemu-0beb4942071e385c16deba03848898865842edc7.tar.bz2 |
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 <aliguori@us.ibm.com>
Diffstat (limited to 'hw/etraxfs_ser.c')
-rw-r--r-- | hw/etraxfs_ser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/etraxfs_ser.c b/hw/etraxfs_ser.c index b8acd43..567cb8c 100644 --- a/hw/etraxfs_ser.c +++ b/hw/etraxfs_ser.c @@ -216,7 +216,7 @@ static int etraxfs_ser_init(SysBusDevice *dev) memory_region_init_io(&s->mmio, &ser_ops, s, "etraxfs-serial", R_MAX * 4); sysbus_init_mmio(dev, &s->mmio); - s->chr = qdev_init_chardev(&dev->qdev); + s->chr = qemu_char_get_next_serial(); if (s->chr) qemu_chr_add_handlers(s->chr, serial_can_receive, serial_receive, |