summaryrefslogtreecommitdiffstats
path: root/hw/misc/milkymist-hpdmc.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/milkymist-hpdmc.c
parent1437c94b2689c2010362f84d14f14feaa1d8dba3 (diff)
downloadhqemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.zip
hqemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.tar.gz
hw/m*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/milkymist-hpdmc.c')
-rw-r--r--hw/misc/milkymist-hpdmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/milkymist-hpdmc.c b/hw/misc/milkymist-hpdmc.c
index f4826b9..a498881 100644
--- a/hw/misc/milkymist-hpdmc.c
+++ b/hw/misc/milkymist-hpdmc.c
@@ -127,7 +127,7 @@ static int milkymist_hpdmc_init(SysBusDevice *dev)
{
MilkymistHpdmcState *s = FROM_SYSBUS(typeof(*s), dev);
- memory_region_init_io(&s->regs_region, NULL, &hpdmc_mmio_ops, s,
+ memory_region_init_io(&s->regs_region, OBJECT(dev), &hpdmc_mmio_ops, s,
"milkymist-hpdmc", R_MAX * 4);
sysbus_init_mmio(dev, &s->regs_region);
OpenPOWER on IntegriCloud