[lkml]   [2022]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] memory: fsl_ifc: populate child nodes of buses and mfd devices
Commit 98f1323959b8 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: 98f1323959b8 ("memory: fsl_ifc: populate child devices without relying on simple-bus")

Signed-off-by: Li Yang <>
drivers/memory/fsl_ifc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/memory/fsl_ifc.c b/drivers/memory/fsl_ifc.c
index 6e6de52bb82d..1604de863d41 100644
--- a/drivers/memory/fsl_ifc.c
+++ b/drivers/memory/fsl_ifc.c
@@ -290,8 +290,7 @@ static int fsl_ifc_ctrl_probe(struct platform_device *dev)

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

 \ /
  Last update: 2022-03-07 21:42    [W:0.134 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site