Re: [PATCH v2] of: reserved_mem: Introduce devres-managed initialization function
From: Rob Herring (Arm)
Date: Mon Aug 10 2026 - 14:44:46 EST
On Thu, 30 Jul 2026 13:02:14 +0530, Mukesh Ojha wrote:
> From: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
>
> 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 <konrad.dybcio@xxxxxxxxxxxxxxxx>
> Signed-off-by: Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx>
> ---
> Changes since v1: https://lore.kernel.org/lkml/20260703193855.110619-2-mukesh.ojha@xxxxxxxxxxxxxxxx/
> - 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