aboutsummaryrefslogtreecommitdiff
path: root/hw/syborg_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/syborg_serial.c')
-rw-r--r--hw/syborg_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/syborg_serial.c b/hw/syborg_serial.c
index b73a009ede..6f339fa7a6 100644
--- a/hw/syborg_serial.c
+++ b/hw/syborg_serial.c
@@ -295,7 +295,7 @@ static int syborg_serial_init(SysBusDevice *dev)
sysbus_init_irq(dev, &s->irq);
memory_region_init_io(&s->iomem, &syborg_serial_ops, s,
"serial", 0x1000);
- sysbus_init_mmio_region(dev, &s->iomem);
+ sysbus_init_mmio(dev, &s->iomem);
s->chr = qdev_init_chardev(&dev->qdev);
if (s->chr) {
qemu_chr_add_handlers(s->chr, syborg_serial_can_receive,