Skip to content

firmware: raspberrypi: Handle device registration errors

Triet Hoang linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2firmware: raspberrypi: Handle device registration errorsdrivers/firmware/raspberrypi.c+44 -131 reply
2/2firmware: raspberrypi: Clean up local formattingdrivers/firmware/raspberrypi.c+2 -15 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchStefan Wahren
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] firmware: raspberrypi: Handle device registration errors

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(-)
Signature · 1 line
2.53.0