Commit 44662f90 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

ASoC: simple-card: Fix missing of_node_put() at simple_dai_link_of()

We forgot to unreference the platform node object obtained from
of_get_child_by_name().  This leads to the unbalance of node
refcount.

Fixes: e0ae225b ("ASoC: simple-card: support platform in dts parse")
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2757970f
......@@ -421,6 +421,7 @@ static int simple_dai_link_of(struct simple_priv *priv,
asoc_simple_card_canonicalize_platform(dai_link);
dai_link_of_err:
of_node_put(plat);
of_node_put(node);
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment