Re: [PATCH] mtd: rawnand: omap2: release the ELM device node reference

From: Miquel Raynal

Date: Tue Nov 17 2026 - 09:23:40 EST


On Thu, 29 Oct 2026 20:03:47 +0800, Yige Jiang wrote:
> omap_get_dt_info() acquires an ELM node reference through ti,elm-id
> or the legacy elm_id phandle, but never releases it. The existing
> put_device(info->elm_dev) releases a separate device reference.
>
> Register a managed of_node_put() action immediately after parsing the
> phandle. This releases the node on later parsing and probe failures
> and after NAND cleanup on unbind. If action registration fails,
> devm_add_action_or_reset() releases the reference immediately.
>
> [...]

Applied to nand/next, thanks!

[1/1] mtd: rawnand: omap2: release the ELM device node reference
commit: c46b3c1c28fb34b9ea1abd5e5fb4219cd78aaf34

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl