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/milkymist-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/milkymist-uart.c') diff --git a/hw/milkymist-uart.c b/hw/milkymist-uart.c index 2999b7963..f9a229cf6 100644 --- a/hw/milkymist-uart.c +++ b/hw/milkymist-uart.c @@ -199,7 +199,7 @@ static int milkymist_uart_init(SysBusDevice *dev) "milkymist-uart", R_MAX * 4); sysbus_init_mmio(dev, &s->regs_region); - 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); } -- cgit v1.2.3