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/dma/pl080.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/dma/pl080.c') diff --git a/hw/dma/pl080.c b/hw/dma/pl080.c index 588c7b2571..7937c3ecf0 100644 --- a/hw/dma/pl080.c +++ b/hw/dma/pl080.c @@ -359,7 +359,7 @@ static int pl08x_init(SysBusDevice *dev, int nchannels) { pl080_state *s = FROM_SYSBUS(pl080_state, dev); - memory_region_init_io(&s->iomem, NULL, &pl080_ops, s, "pl080", 0x1000); + memory_region_init_io(&s->iomem, OBJECT(s), &pl080_ops, s, "pl080", 0x1000); sysbus_init_mmio(dev, &s->iomem); sysbus_init_irq(dev, &s->irq); s->nchannels = nchannels; -- cgit v1.2.1