summaryrefslogtreecommitdiff
path: root/hw/dma/sun4m_iommu.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-06-06 21:25:08 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-04 17:42:47 +0200
commit3eadad551d3d5901b75f8c53dbd57b9bec2f2b01 (patch)
tree3e09bba95ebdee8621fde3463ad7cf91940b6718 /hw/dma/sun4m_iommu.c
parent300b1fc68c47478f36705f23a93dce77ac3e429a (diff)
downloadqemu-3eadad551d3d5901b75f8c53dbd57b9bec2f2b01.tar.gz
qemu-3eadad551d3d5901b75f8c53dbd57b9bec2f2b01.tar.bz2
qemu-3eadad551d3d5901b75f8c53dbd57b9bec2f2b01.zip
hw/d*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/dma/sun4m_iommu.c')
-rw-r--r--hw/dma/sun4m_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dma/sun4m_iommu.c b/hw/dma/sun4m_iommu.c
index eafb99130f..edb93f36ac 100644
--- a/hw/dma/sun4m_iommu.c
+++ b/hw/dma/sun4m_iommu.c
@@ -349,7 +349,7 @@ static int iommu_init1(SysBusDevice *dev)
sysbus_init_irq(dev, &s->irq);
- memory_region_init_io(&s->iomem, NULL, &iommu_mem_ops, s, "iommu",
+ memory_region_init_io(&s->iomem, OBJECT(s), &iommu_mem_ops, s, "iommu",
IOMMU_NREGS * sizeof(uint32_t));
sysbus_init_mmio(dev, &s->iomem);