From: Marco Felsch Date: Mon, 15 Dec 2025 19:18:27 +0000 (+0100) Subject: pmdomain: imx93-blk-ctrl: add support for optional subnodes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cc5a233293a8de47a9f754c6cd70c7fa25e0312;p=thirdparty%2Fkernel%2Flinux.git pmdomain: imx93-blk-ctrl: add support for optional subnodes This particular block can have DT subnodes describing the LVDS LDB, MIPI DSI and parallel DPI bridge. Scan for possible sub-devices within the driver, instead of misusing the simple-bus to perform the scan. Reviewed-by: Alexander Stein Reviewed-by: Frank Li Signed-off-by: Marco Felsch Signed-off-by: Ulf Hansson --- diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c index 49610f2389c3b..1afc78b034fad 100644 --- a/drivers/pmdomain/imx/imx93-blk-ctrl.c +++ b/drivers/pmdomain/imx/imx93-blk-ctrl.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -313,6 +314,10 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev) if (ret) return dev_err_probe(dev, ret, "failed to add genpd_provider release callback\n"); + ret = devm_of_platform_populate(dev); + if (ret) + return dev_err_probe(dev, ret, "failed to populate blk-ctrl sub-devices\n"); + return 0; }