Skip to content

Commit 48e6a9c

Browse files
committed
of: platform: Use default match table for /firmware
Calling of_platform_populate() without a match table will only populate the immediate child nodes under /firmware. This is usually fine, but in the case of something like a "simple-mfd" node such as "raspberrypi,bcm2835-firmware", those child nodes will not be populated. And subsequent calls won't work either because the /firmware node is marked as processed already. Switch the call to of_platform_default_populate() to solve this problem. It should be a nop for existing cases. Fixes: 3aa0582 ("of: platform: populate /firmware/ node from of_platform_default_populate_init()") Cc: stable@vger.kernel.org Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://patch.msgid.link/20260114015158.692170-2-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent 235a1eb commit 48e6a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/of/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ static int __init of_platform_default_populate_init(void)
569569

570570
node = of_find_node_by_path("/firmware");
571571
if (node) {
572-
of_platform_populate(node, NULL, NULL, NULL);
572+
of_platform_default_populate(node, NULL, NULL);
573573
of_node_put(node);
574574
}
575575

0 commit comments

Comments
 (0)