Skip to content

Commit

Permalink
soc: imx: imx8m-blk-ctrl: Scan subnodes and bind drivers to them
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Vasut authored and Shawn Guo committed Mar 14, 2023
1 parent 300bd12 commit 9cb6d1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/soc/imx/imx8m-blk-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9cb6d1b

Please sign in to comment.