]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: bcm: cygnus: use scoped child node loop
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Mon, 8 Jun 2026 13:39:13 +0000 (10:39 -0300)
committerMark Brown <broonie@kernel.org>
Fri, 12 Jun 2026 15:12:11 +0000 (16:12 +0100)
commit9741aad24432ae2cef0fe3d5c2c2d1c2ecc803f2
treecb6f4d935a01f7a4702a5c0010a0dde92f2f8b67
parent065df02692f06d38e032edd5cd2d554b81c8b48e
ASoC: bcm: cygnus: use scoped child node loop

cygnus_ssp_probe() manually puts the current child node before returning
from the child parsing loop on error.

Use for_each_available_child_of_node_scoped() so the current child node is
released automatically on early return and normal loop exit.

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