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

Miquel Raynal miquel.raynal at bootlin.com
Tue Nov 17 06:23:15 PST 2026


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




More information about the linux-mtd mailing list