Re: [PATCH v2] of: reserved_mem: Introduce devres-managed initialization function

"Rob Herring (Arm)" <[email protected]>
Newsgroups org.kernel.vger.linux-kernel,org.kernel.vger.linux-devicetree
Message-ID <[email protected]>
On Thu, 30 Jul 2026 13:02:14 +0530, Mukesh Ojha wrote:
> From: Konrad Dybcio <[email protected]>
> 
> Introduce devres-based helper for of_reserved_mem_device_init()
> to help fight dangling references and ever so slightly reduce the
> number of boilerplate deinitialization calls.
> 
> Signed-off-by: Konrad Dybcio <[email protected]>
> Signed-off-by: Mukesh Ojha <[email protected]>
> ---
> Changes since v1: https://lore.kernel.org/lkml/[email protected]/
> - Separated from big series with multiple API users to avoid clogging the
>   series. Instead of merging all at once, the plan is to land this API
>   first, then post the individual subsystem patches that use the API.
>   There is enough user of this API given in the last series.
> - Rebased on latest Linux next tag.
> 
> 
>  drivers/of/of_reserved_mem.c    | 44 +++++++++++++++++++++++++++++++++
>  include/linux/of_reserved_mem.h |  7 ++++++
>  2 files changed, 51 insertions(+)
> 

I applied for 7.3 so conversions can go on top of 7.3-rc1.

Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.