]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
of: platform: Use default match table for /firmware
authorRob Herring (Arm) <robh@kernel.org>
Wed, 14 Jan 2026 01:51:58 +0000 (19:51 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Sat, 17 Jan 2026 01:13:56 +0000 (19:13 -0600)
commit48e6a9c4a20870e09f85ff1a3628275d6bce31c0
treea2eda6287d6f9d8d43a5a3e36de9d52a97811133
parent235a1eb8d2dcc49a6cf0a5ee1aa85544a5d0054b
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: 3aa0582fdb82 ("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>
drivers/of/platform.c