hw/arm/fsl-imx8mp: Fix parent of ocram memory region

Rather than having a NULL parent, let the containing SoC object be the
parent. This cleans up the QOM composition tree a bit.

Fixes: 1aaf347868 ("hw/arm/fsl-imx8mp: Add on-chip RAM")
cc: Gaurav Sharma <gaurav.sharma_7@nxp.com>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20260308203516.160103-3-shentey@gmail.com

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Bernhard Beschow
2026-05-05 09:25:21 +01:00
committed by Peter Maydell
parent d090694fb5
commit bd884b6bb2

View File

@@ -670,7 +670,7 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)
fsl_imx8mp_memmap[FSL_IMX8MP_PCIE_PHY1].addr);
/* On-Chip RAM */
if (!memory_region_init_ram(&s->ocram, NULL, "imx8mp.ocram",
if (!memory_region_init_ram(&s->ocram, OBJECT(dev), "imx8mp.ocram",
fsl_imx8mp_memmap[FSL_IMX8MP_OCRAM].size,
errp)) {
return;