summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorStephen Gordon <gordoste@iinet.net.au>2024-12-07 23:22:56 +1100
committerMark Brown <broonie@kernel.org>2024-12-10 12:44:16 +0000
commit687630aa582acf674120c87350beb01d836c837c (patch)
treeefd5a22bf99cf596e0913f939b013071017cdb3c /sound
parent984795e76def5c903724b8d6a8228e356bbdf2af (diff)
downloadlwn-687630aa582acf674120c87350beb01d836c837c.tar.gz
lwn-687630aa582acf674120c87350beb01d836c837c.zip
ASoC: audio-graph-card: Call of_node_put() on correct node
Signed-off-by: Stephen Gordon <gordoste@iinet.net.au> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/20241207122257.165096-1-gordoste@iinet.net.au Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/generic/audio-graph-card2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c
index 5280c1b20d85..1f5c4e8ff1b9 100644
--- a/sound/soc/generic/audio-graph-card2.c
+++ b/sound/soc/generic/audio-graph-card2.c
@@ -771,7 +771,7 @@ static void graph_link_init(struct simple_util_priv *priv,
of_node_get(port_codec);
if (graph_lnk_is_multi(port_codec)) {
ep_codec = graph_get_next_multi_ep(&port_codec);
- of_node_put(port_cpu);
+ of_node_put(port_codec);
port_codec = ep_to_port(ep_codec);
} else {
ep_codec = of_graph_get_next_port_endpoint(port_codec, NULL);