Revision 0beb4942 hw/lm32_juart.c

b/hw/lm32_juart.c
114 114
{
115 115
    LM32JuartState *s = FROM_SYSBUS(typeof(*s), dev);
116 116

  
117
    s->chr = qdev_init_chardev(&dev->qdev);
117
    s->chr = qemu_char_get_next_serial();
118 118
    if (s->chr) {
119 119
        qemu_chr_add_handlers(s->chr, juart_can_rx, juart_rx, juart_event, s);
120 120
    }

Also available in: Unified diff