soc: imx: imx8m-blk-ctrl: Scan subnodes and bind drivers to them
authorMarek Vasut <marex@denx.de>
Mon, 27 Feb 2023 15:54:21 +0000 (16:54 +0100)
committerShawn Guo <shawnguo@kernel.org>
Tue, 14 Mar 2023 03:12:13 +0000 (11:12 +0800)
This particular block can have DT subnodes describing the LVDS LDB
bridge. Instead of misusing simple-bus to scan for those nodes, do
the scan within the driver.

Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/imx8m-blk-ctrl.c

index 399cb85..8bee728 100644 (file)
@@ -310,6 +310,10 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev)
 
        dev_set_drvdata(dev, bc);
 
+       ret = devm_of_platform_populate(dev);
+       if (ret)
+               goto cleanup_provider;
+
        return 0;
 
 cleanup_provider: