[PATCH v2 6/6] firmware: raspberrypi: Store child devices in struct rpi_firmware

Florian Fainelli florian.fainelli at broadcom.com
Fri Nov 13 19:15:22 PST 2026


From: Florian Fainelli <f.fainelli at gmail.com>

On Sat, 07 Nov 2026 19:21:36 +0100, Sander Speetjens <sander.speetjens at gmail.com> wrote:
> The hwmon and clock platform devices were kept in global variables.
> Move them into struct rpi_firmware so each instance owns its own
> children and their lifetimes are correctly paired with the parent.
> 
> Also check the return value of platform_device_register_data() so that
> an error pointer is never stored.  The child devices are optional; do
> not propagate registration failures so the main firmware interface
> remains available.
> 
> Signed-off-by: Sander Speetjens <sander.speetjens at gmail.com>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks!
--
Florian



More information about the linux-arm-kernel mailing list