Re: [PATCH v2 6/6] firmware: raspberrypi: Store child devices in struct rpi_firmware
From: Florian Fainelli
Date: Fri Nov 13 2026 - 22:15:38 EST
From: Florian Fainelli <f.fainelli@xxxxxxxxx>
On Sat, 07 Nov 2026 19:21:36 +0100, Sander Speetjens <sander.speetjens@xxxxxxxxx> 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@xxxxxxxxx>
> ---
Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks!
--
Florian