diff options
Diffstat (limited to 'hw/misc/imx_ccm.c')
-rw-r--r-- | hw/misc/imx_ccm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/misc/imx_ccm.c b/hw/misc/imx_ccm.c index 863c219e7c..816d5e8331 100644 --- a/hw/misc/imx_ccm.c +++ b/hw/misc/imx_ccm.c @@ -281,7 +281,8 @@ static int imx_ccm_init(SysBusDevice *dev) { IMXCCMState *s = FROM_SYSBUS(typeof(*s), dev); - memory_region_init_io(&s->iomem, NULL, &imx_ccm_ops, s, "imx_ccm", 0x1000); + memory_region_init_io(&s->iomem, OBJECT(dev), &imx_ccm_ops, s, + "imx_ccm", 0x1000); sysbus_init_mmio(dev, &s->iomem); return 0; |