diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-06 21:25:08 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:48 +0200 |
commit | 3c16154210ce6277bee553e72f7c7b2b2fecefbf (patch) | |
tree | 064740d1798b5970dba5160bea48b0a59f8f02dc /hw/misc/a9scu.c | |
parent | 1437c94b2689c2010362f84d14f14feaa1d8dba3 (diff) | |
download | qemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.zip qemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.tar.gz qemu-3c16154210ce6277bee553e72f7c7b2b2fecefbf.tar.bz2 |
hw/m*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/a9scu.c')
-rw-r--r-- | hw/misc/a9scu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/misc/a9scu.c b/hw/misc/a9scu.c index c8f26f9..601b573 100644 --- a/hw/misc/a9scu.c +++ b/hw/misc/a9scu.c @@ -119,7 +119,8 @@ static void a9_scu_realize(DeviceState *dev, Error ** errp) A9SCUState *s = A9_SCU(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); - memory_region_init_io(&s->iomem, NULL, &a9_scu_ops, s, "a9-scu", 0x100); + memory_region_init_io(&s->iomem, OBJECT(dev), &a9_scu_ops, s, + "a9-scu", 0x100); sysbus_init_mmio(sbd, &s->iomem); } |