summaryrefslogtreecommitdiffstats
path: root/hw/misc/arm_l2x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/arm_l2x0.c')
-rw-r--r--hw/misc/arm_l2x0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/misc/arm_l2x0.c b/hw/misc/arm_l2x0.c
index eb4427d..3d6acee 100644
--- a/hw/misc/arm_l2x0.c
+++ b/hw/misc/arm_l2x0.c
@@ -157,7 +157,8 @@ static int l2x0_priv_init(SysBusDevice *dev)
{
l2x0_state *s = FROM_SYSBUS(l2x0_state, dev);
- memory_region_init_io(&s->iomem, &l2x0_mem_ops, s, "l2x0_cc", 0x1000);
+ memory_region_init_io(&s->iomem, OBJECT(dev), &l2x0_mem_ops, s,
+ "l2x0_cc", 0x1000);
sysbus_init_mmio(dev, &s->iomem);
return 0;
}
OpenPOWER on IntegriCloud