summaryrefslogtreecommitdiff
path: root/hw/dma/puv3_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/dma/puv3_dma.c')
-rw-r--r--hw/dma/puv3_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dma/puv3_dma.c b/hw/dma/puv3_dma.c
index 787e9a1c4d..36004ae48a 100644
--- a/hw/dma/puv3_dma.c
+++ b/hw/dma/puv3_dma.c
@@ -80,7 +80,7 @@ static int puv3_dma_init(SysBusDevice *dev)
s->reg_CFG[i] = 0x0;
}
- memory_region_init_io(&s->iomem, NULL, &puv3_dma_ops, s, "puv3_dma",
+ memory_region_init_io(&s->iomem, OBJECT(s), &puv3_dma_ops, s, "puv3_dma",
PUV3_REGS_OFFSET);
sysbus_init_mmio(dev, &s->iomem);