summaryrefslogtreecommitdiff
path: root/hw/intc/imx_avic.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/intc/imx_avic.c')
-rw-r--r--hw/intc/imx_avic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/intc/imx_avic.c b/hw/intc/imx_avic.c
index ff45dcdc0d..75c8ffde29 100644
--- a/hw/intc/imx_avic.c
+++ b/hw/intc/imx_avic.c
@@ -372,7 +372,8 @@ static int imx_avic_init(SysBusDevice *dev)
{
IMXAVICState *s = FROM_SYSBUS(IMXAVICState, dev);
- memory_region_init_io(&s->iomem, &imx_avic_ops, s, "imx_avic", 0x1000);
+ memory_region_init_io(&s->iomem, OBJECT(s), &imx_avic_ops, s,
+ "imx_avic", 0x1000);
sysbus_init_mmio(dev, &s->iomem);
qdev_init_gpio_in(&dev->qdev, imx_avic_set_irq, IMX_AVIC_NUM_IRQS);