Re: [PATCH 1/2] nvmem: Drop OF node reference on nvmem_add_one_cell() failure

From: Srinivas Kandagatla

Date: Thu Jan 15 2026 - 06:04:13 EST



On Wed, 31 Dec 2025 13:09:50 +0100, Krzysztof Kozlowski wrote:
> If nvmem_add_one_cell() failed, the ownership of "child" (or "info.np"),
> thus its OF reference, is not passed further and function should clean
> up by putting the reference it got via earlier of_node_get(). Note that
> this is independent of references obtained via for_each_child_of_node()
> loop.
>
>
> [...]

Applied, thanks!

[1/2] nvmem: Drop OF node reference on nvmem_add_one_cell() failure
commit: 3bc276e70c0cd66350a9a5d39bd3f638de362941
[2/2] nvmem: Simplify with scoped for each OF child loop
commit: f28a32e7a5c5eb27679236d0aa20979f0353f52e

Best regards,
--
Srinivas Kandagatla <srini@xxxxxxxxxx>