aboutsummaryrefslogtreecommitdiff
path: root/hw/lm32_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/lm32_uart.c')
-rw-r--r--hw/lm32_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lm32_uart.c b/hw/lm32_uart.c
index 46a5ae0..d013abd 100644
--- a/hw/lm32_uart.c
+++ b/hw/lm32_uart.c
@@ -250,7 +250,7 @@ static int lm32_uart_init(SysBusDevice *dev)
sysbus_init_irq(dev, &s->irq);
memory_region_init_io(&s->iomem, &uart_ops, s, "uart", R_MAX * 4);
- sysbus_init_mmio_region(dev, &s->iomem);
+ sysbus_init_mmio(dev, &s->iomem);
s->chr = qdev_init_chardev(&dev->qdev);
if (s->chr) {