aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/tusb6010.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-06-06 21:25:08 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-04 17:42:48 +0200
commit853dca12055ea74994629d06798165d811c5e1e2 (patch)
tree7393d45ca718837aa7c6e97fe9e894fe4e78b1e8 /hw/timer/tusb6010.c
parent2977673992b7d363d0f402ee7c4217795fe13809 (diff)
downloadqemu-853dca12055ea74994629d06798165d811c5e1e2.zip
qemu-853dca12055ea74994629d06798165d811c5e1e2.tar.gz
qemu-853dca12055ea74994629d06798165d811c5e1e2.tar.bz2
hw/t*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/timer/tusb6010.c')
-rw-r--r--hw/timer/tusb6010.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/timer/tusb6010.c b/hw/timer/tusb6010.c
index fcce4ac..47b6809 100644
--- a/hw/timer/tusb6010.c
+++ b/hw/timer/tusb6010.c
@@ -779,8 +779,8 @@ static int tusb6010_init(SysBusDevice *dev)
TUSBState *s = FROM_SYSBUS(TUSBState, dev);
s->otg_timer = qemu_new_timer_ns(vm_clock, tusb_otg_tick, s);
s->pwr_timer = qemu_new_timer_ns(vm_clock, tusb_power_tick, s);
- memory_region_init_io(&s->iomem[1], NULL, &tusb_async_ops, s, "tusb-async",
- UINT32_MAX);
+ memory_region_init_io(&s->iomem[1], OBJECT(s), &tusb_async_ops, s,
+ "tusb-async", UINT32_MAX);
sysbus_init_mmio(dev, &s->iomem[0]);
sysbus_init_mmio(dev, &s->iomem[1]);
sysbus_init_irq(dev, &s->irq);