aboutsummaryrefslogtreecommitdiff
path: root/hw/lm32_juart.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-22 15:29:25 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-02-03 10:41:08 -0600
commit0beb4942071e385c16deba03848898865842edc7 (patch)
treeec52218b7cfa3db09db0afc8317a0cc1d4e5ebaf /hw/lm32_juart.c
parentee46d8a5038d06babb6cfb0a177727d85df9b3fc (diff)
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/lm32_juart.c')
-rw-r--r--hw/lm32_juart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lm32_juart.c b/hw/lm32_juart.c
index 023c644fef..38dd28230d 100644
--- a/hw/lm32_juart.c
+++ b/hw/lm32_juart.c
@@ -114,7 +114,7 @@ static int lm32_juart_init(SysBusDevice *dev)
{
LM32JuartState *s = FROM_SYSBUS(typeof(*s), dev);
- s->chr = qdev_init_chardev(&dev->qdev);
+ s->chr = qemu_char_get_next_serial();
if (s->chr) {
qemu_chr_add_handlers(s->chr, juart_can_rx, juart_rx, juart_event, s);
}