[PATCH v2 6/6] firmware: raspberrypi: Store child devices in struct rpi_firmware
Stefan Wahren
wahrenst at gmx.net
Sun Nov 8 13:06:13 PST 2026
Hi Sander,
Am 07.11.26 um 19:21 schrieb Sander Speetjens:
> 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>
the first version of this patch contained fixes tags, but they were
dropped without mention it in the cover letter.
Could you please explain?
Best regards
More information about the linux-rpi-kernel
mailing list