From: Mark Brown Date: Fri, 12 Jun 2026 15:12:13 +0000 (+0100) Subject: ASoC: use scoped OF node handling in manual cleanup paths X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7165d138c6e71a6b7845eff83ca8be8e129f8bff;p=thirdparty%2Fkernel%2Flinux.git ASoC: use scoped OF node handling in manual cleanup paths Cássio Gabriel 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 --- 7165d138c6e71a6b7845eff83ca8be8e129f8bff