Skip to content

Commit dd8adc7

Browse files
Li Yangkrzk
authored andcommitted
memory: fsl_ifc: populate child nodes of buses and mfd devices
Commit 3e25f80 ("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: 3e25f80 ("memory: fsl_ifc: populate child devices without relying on simple-bus") Signed-off-by: Li Yang <leoyang.li@nxp.com> Link: https://lore.kernel.org/r/20220307204118.19093-1-leoyang.li@nxp.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 4f9f45d commit dd8adc7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/memory/fsl_ifc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ static int fsl_ifc_ctrl_probe(struct platform_device *dev)
287287
}
288288

289289
/* legacy dts may still use "simple-bus" compatible */
290-
ret = of_platform_populate(dev->dev.of_node, NULL, NULL,
291-
&dev->dev);
290+
ret = of_platform_default_populate(dev->dev.of_node, NULL, &dev->dev);
292291
if (ret)
293292
goto err_free_nandirq;
294293

0 commit comments

Comments
 (0)