diff options
Diffstat (limited to 'hw/lm32_uart.c')
-rw-r--r-- | hw/lm32_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lm32_uart.c b/hw/lm32_uart.c index fc70490e32..630ccb7131 100644 --- a/hw/lm32_uart.c +++ b/hw/lm32_uart.c @@ -252,7 +252,7 @@ static int lm32_uart_init(SysBusDevice *dev) memory_region_init_io(&s->iomem, &uart_ops, s, "uart", R_MAX * 4); sysbus_init_mmio(dev, &s->iomem); - 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); } |