[PATCH 3/7] pmdomain: imx93-blk-ctrl: populate child devices

Frank Li
2025-07-01T22:06:47Z

imx93-blk-ctrl is miscellaneous devices, which include reset, clock, MIPI
CSI2 PHY and DSI's miscellaneous logic. Call of_platform_populate() to
probe child nodes.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/pmdomain/imx/imx93-blk-ctrl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c
index 0e2ba8ec55d75..ba2dd8bd143d1 100644
--- a/drivers/pmdomain/imx/imx93-blk-ctrl.c
+++ b/drivers/pmdomain/imx/imx93-blk-ctrl.c
@@ -7,6 +7,7 @@
#include <linux/device.h>
#include <linux/module.h>
#include <linux/of.h>
+#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>
@@ -297,7 +298,7 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev)

dev_set_drvdata(dev, bc);

- return 0;
+ return of_platform_populate(dev->of_node, NULL, NULL, dev);

cleanup_pds:
for (i--; i >= 0; i--)

--
2.34.1