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 | 1437c94b2689c2010362f84d14f14feaa1d8dba3 (patch) | |
tree | bd4b6f471dd28369663606a2a1831b92787b74d1 /hw/intc/realview_gic.c | |
parent | b716368778aebdb523546d72a28706420a8c32ae (diff) |
hw/i*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/intc/realview_gic.c')
-rw-r--r-- | hw/intc/realview_gic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/intc/realview_gic.c b/hw/intc/realview_gic.c index 1731a70b45..e122c2c810 100644 --- a/hw/intc/realview_gic.c +++ b/hw/intc/realview_gic.c @@ -43,7 +43,8 @@ static int realview_gic_init(SysBusDevice *dev) /* Pass through inbound GPIO lines to the GIC */ qdev_init_gpio_in(&s->busdev.qdev, realview_gic_set_irq, numirq - 32); - memory_region_init(&s->container, NULL, "realview-gic-container", 0x2000); + memory_region_init(&s->container, OBJECT(s), + "realview-gic-container", 0x2000); memory_region_add_subregion(&s->container, 0, sysbus_mmio_get_region(busdev, 1)); memory_region_add_subregion(&s->container, 0x1000, |