[PATCH 0/2] firmware: raspberrypi: Handle device registration errors
From: Triet Hoang
Date: Fri Sep 18 2026 - 23:49:03 EST
Hi,
This series improves error handling when registering the Raspberry Pi
firmware hwmon and clock platform devices.
The first patch checks errors returned by platform_device_register_data()
and unwinds previously allocated resources when registration fails. It
preserves the existing behavior of skipping hwmon registration when the
RPI_FIRMWARE_GET_THROTTLED request fails.
The second patch fixes formatting issues reported by checkpatch.
Triet Hoang (2):
firmware: raspberrypi: Handle device registration errors
firmware: raspberrypi: Clean up local formatting
drivers/firmware/raspberrypi.c | 60 ++++++++++++++++++++++++++--------
1 file changed, 46 insertions(+), 14 deletions(-)
--
2.53.0