summaryrefslogtreecommitdiff
path: root/hw/misc/puv3_pm.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:48 +0200
commit3c16154210ce6277bee553e72f7c7b2b2fecefbf (patch)
tree064740d1798b5970dba5160bea48b0a59f8f02dc /hw/misc/puv3_pm.c
parent1437c94b2689c2010362f84d14f14feaa1d8dba3 (diff)
downloadqemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.tar.gz
qemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.tar.bz2
qemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.zip
hw/m*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/puv3_pm.c')
-rw-r--r--hw/misc/puv3_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/puv3_pm.c b/hw/misc/puv3_pm.c
index d4a863f0c9..5592560014 100644
--- a/hw/misc/puv3_pm.c
+++ b/hw/misc/puv3_pm.c
@@ -120,7 +120,7 @@ static int puv3_pm_init(SysBusDevice *dev)
s->reg_PCGR = 0x0;
- memory_region_init_io(&s->iomem, NULL, &puv3_pm_ops, s, "puv3_pm",
+ memory_region_init_io(&s->iomem, OBJECT(s), &puv3_pm_ops, s, "puv3_pm",
PUV3_REGS_OFFSET);
sysbus_init_mmio(dev, &s->iomem);