]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: qcom: common: use scoped OF node handling
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Mon, 8 Jun 2026 13:39:11 +0000 (10:39 -0300)
committerMark Brown <broonie@kernel.org>
Fri, 12 Jun 2026 15:12:09 +0000 (16:12 +0100)
commit22aed576add03c2f8083c1122087fbe4d18e4bf4
tree87095ac7685534c2e9448ef096303766576784e8
parent4549871118cf616eecdd2d939f78e3b9e1dddc48
ASoC: qcom: common: use scoped OF node handling

qcom_snd_parse_of() manually drops the link child node and the
cpu/platform/codec child nodes on error paths and at the end of each
iteration.

Use for_each_available_child_of_node_scoped() for the link node and
__free(device_node) for the named child nodes. This keeps the existing
ownership rules for DAI component phandle references, while removing the
manual cleanup labels from a path that has previously needed OF refcount
fixes.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260608-asoc-of-node-scoped-cleanup-v1-1-9e3ac518dc2e@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/common.c