]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: use scoped OF node handling in manual cleanup paths
authorMark Brown <broonie@kernel.org>
Fri, 12 Jun 2026 15:12:13 +0000 (16:12 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 12 Jun 2026 15:12:13 +0000 (16:12 +0100)
Cássio Gabriel <cassiogabrielcontato@gmail.com> says:

Some ASoC drivers still manually release child OF nodes
when leaving child-node iteration loops early.

Convert these focused cases to scoped OF node cleanup
so early returns and normal loop exits keep the same node
lifetime handling without explicit of_node_put() calls.

- Patch 1 updates qcom_snd_parse_of() to use
  for_each_available_child_of_node_scoped() for link nodes and
  __free(device_node) for temporary cpu/platform/codec child nodes.
- Patch 2 updates fsl_qmc_audio to use
  for_each_available_child_of_node_scoped() for DAI child-node parsing.
- Patch 3 updates cygnus-ssp to use
  for_each_available_child_of_node_scoped() for SSP child-node parsing.

Link: https://patch.msgid.link/20260608-asoc-of-node-scoped-cleanup-v1-0-9e3ac518dc2e@gmail.com

Trivial merge