summaryrefslogtreecommitdiffstats
path: root/hw/intc/etraxfs_pic.c
diff options
context:
space:
mode:
authorPaolo Bonzini2013-06-07 03:25:08 +0200
committerPaolo Bonzini2013-07-04 17:42:48 +0200
commit1437c94b2689c2010362f84d14f14feaa1d8dba3 (patch)
treebd4b6f471dd28369663606a2a1831b92787b74d1 /hw/intc/etraxfs_pic.c
parenthw/gpio: pass owner to memory_region_init* functions (diff)
downloadqemu-1437c94b2689c2010362f84d14f14feaa1d8dba3.tar.gz
qemu-1437c94b2689c2010362f84d14f14feaa1d8dba3.tar.xz
qemu-1437c94b2689c2010362f84d14f14feaa1d8dba3.zip
hw/i*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/intc/etraxfs_pic.c')
-rw-r--r--hw/intc/etraxfs_pic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/intc/etraxfs_pic.c b/hw/intc/etraxfs_pic.c
index 81e1ab9532..ce3a3f6eb3 100644
--- a/hw/intc/etraxfs_pic.c
+++ b/hw/intc/etraxfs_pic.c
@@ -146,7 +146,8 @@ static int etraxfs_pic_init(SysBusDevice *dev)
sysbus_init_irq(dev, &s->parent_irq);
sysbus_init_irq(dev, &s->parent_nmi);
- memory_region_init_io(&s->mmio, NULL, &pic_ops, s, "etraxfs-pic", R_MAX * 4);
+ memory_region_init_io(&s->mmio, OBJECT(s), &pic_ops, s,
+ "etraxfs-pic", R_MAX * 4);
sysbus_init_mmio(dev, &s->mmio);
return 0;
}