Revision 0beb4942 hw/etraxfs_ser.c
b/hw/etraxfs_ser.c | ||
---|---|---|
216 | 216 |
memory_region_init_io(&s->mmio, &ser_ops, s, "etraxfs-serial", R_MAX * 4); |
217 | 217 |
sysbus_init_mmio(dev, &s->mmio); |
218 | 218 |
|
219 |
s->chr = qdev_init_chardev(&dev->qdev);
|
|
219 |
s->chr = qemu_char_get_next_serial();
|
|
220 | 220 |
if (s->chr) |
221 | 221 |
qemu_chr_add_handlers(s->chr, |
222 | 222 |
serial_can_receive, serial_receive, |
Also available in: Unified diff