diff options
author | Anthony Liguori | 2011-12-22 22:29:25 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-02-03 17:41:08 +0100 |
commit | 0beb4942071e385c16deba03848898865842edc7 (patch) | |
tree | ec52218b7cfa3db09db0afc8317a0cc1d4e5ebaf /hw/xilinx_uartlite.c | |
parent | qdev: split out UI portions into a new function (diff) | |
download | qemu-0beb4942071e385c16deba03848898865842edc7.tar.gz qemu-0beb4942071e385c16deba03848898865842edc7.tar.xz qemu-0beb4942071e385c16deba03848898865842edc7.zip |
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/xilinx_uartlite.c')
-rw-r--r-- | hw/xilinx_uartlite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xilinx_uartlite.c b/hw/xilinx_uartlite.c index 1491bbaeaa..1c2b9087b4 100644 --- a/hw/xilinx_uartlite.c +++ b/hw/xilinx_uartlite.c @@ -205,7 +205,7 @@ static int xilinx_uartlite_init(SysBusDevice *dev) memory_region_init_io(&s->mmio, &uart_ops, s, "xilinx-uartlite", 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, uart_can_rx, uart_rx, uart_event, s); return 0; |