Commit dd8adc71 authored by Li Yang's avatar Li Yang Committed by Krzysztof Kozlowski

memory: fsl_ifc: populate child nodes of buses and mfd devices

Commit 3e25f800 ("memory: fsl_ifc: populate child devices without
relying on simple-bus") was trying to replace the "simple-bus"
compatible with explicit bus populate in the driver.  But
of_platform_populate() only populates child nodes of ifc without
populating child buses and child mfd devices residing under ifc.  Change
it to of_platform_default_populate() to fix the problem.

Fixes: 3e25f800 ("memory: fsl_ifc: populate child devices without relying on simple-bus")
Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
Link: https://lore.kernel.org/r/20220307204118.19093-1-leoyang.li@nxp.comSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 4f9f45d0
...@@ -287,8 +287,7 @@ static int fsl_ifc_ctrl_probe(struct platform_device *dev) ...@@ -287,8 +287,7 @@ static int fsl_ifc_ctrl_probe(struct platform_device *dev)
} }
/* legacy dts may still use "simple-bus" compatible */ /* legacy dts may still use "simple-bus" compatible */
ret = of_platform_populate(dev->dev.of_node, NULL, NULL, ret = of_platform_default_populate(dev->dev.of_node, NULL, &dev->dev);
&dev->dev);
if (ret) if (ret)
goto err_free_nandirq; goto err_free_nandirq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment