Re: [PATCH v2] leds: rt4505: Put the child node reference

From: Markus Elfring

Date: Wed Dec 02 2026 - 13:48:05 EST


…
> The v4l2 flash sub-device takes its own reference on the node, so probe
> only needs its reference until it returns. Declare the node with
> __free(fwnode_handle) to drop it then.

I suggest to reduce the scope a bit for the local variable “child”.
https://elixir.bootlin.com/linux/v7.4-rc2/source/drivers/leds/flash/leds-rt4505.c#L341-L394

Regards,
Markus