From 300b1fc68c47478f36705f23a93dce77ac3e429a Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 6 Jun 2013 21:25:08 -0400 Subject: hw/c*: pass owner to memory_region_init* functions Signed-off-by: Paolo Bonzini --- hw/char/escc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/char/escc.c') diff --git a/hw/char/escc.c b/hw/char/escc.c index 422adf2..4c42198 100644 --- a/hw/char/escc.c +++ b/hw/char/escc.c @@ -886,7 +886,7 @@ static int escc_init1(SysBusDevice *dev) s->chn[0].otherchn = &s->chn[1]; s->chn[1].otherchn = &s->chn[0]; - memory_region_init_io(&s->mmio, NULL, &escc_mem_ops, s, "escc", + memory_region_init_io(&s->mmio, OBJECT(s), &escc_mem_ops, s, "escc", ESCC_SIZE << s->it_shift); sysbus_init_mmio(dev, &s->mmio); -- cgit v1.1