From 3eadad551d3d5901b75f8c53dbd57b9bec2f2b01 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 6 Jun 2013 21:25:08 -0400 Subject: hw/d*: pass owner to memory_region_init* functions Signed-off-by: Paolo Bonzini --- hw/display/milkymist-vgafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/display/milkymist-vgafb.c') diff --git a/hw/display/milkymist-vgafb.c b/hw/display/milkymist-vgafb.c index b1f9c168fa..870b339581 100644 --- a/hw/display/milkymist-vgafb.c +++ b/hw/display/milkymist-vgafb.c @@ -279,7 +279,7 @@ static int milkymist_vgafb_init(SysBusDevice *dev) { MilkymistVgafbState *s = FROM_SYSBUS(typeof(*s), dev); - memory_region_init_io(&s->regs_region, NULL, &vgafb_mmio_ops, s, + memory_region_init_io(&s->regs_region, OBJECT(s), &vgafb_mmio_ops, s, "milkymist-vgafb", R_MAX * 4); sysbus_init_mmio(dev, &s->regs_region); -- cgit v1.2.3