aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/tusb6010.c
diff options
context:
space:
mode:
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 50edc063d1..47b6809225 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], &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);