ASoC: rsnd: add missing of_node_put()

This patch adds missing of_node_put() for
rsnd_parse_tdm_split_mode()
rsnd_parse_connect_graph()

Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/8736fkyzx8.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2019-10-23 11:10:43 +09:00 committed by Mark Brown
parent d4d9360bf7
commit ef2c695151
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0

View file

@ -1075,7 +1075,10 @@ static void rsnd_parse_tdm_split_mode(struct rsnd_priv *priv,
j++; j++;
} }
of_node_put(node);
} }
of_node_put(ssiu_np);
} }
static void rsnd_parse_connect_simple(struct rsnd_priv *priv, static void rsnd_parse_connect_simple(struct rsnd_priv *priv,
@ -1093,11 +1096,13 @@ static void rsnd_parse_connect_graph(struct rsnd_priv *priv,
struct device_node *endpoint) struct device_node *endpoint)
{ {
struct device *dev = rsnd_priv_to_dev(priv); struct device *dev = rsnd_priv_to_dev(priv);
struct device_node *remote_node = of_graph_get_remote_port_parent(endpoint); struct device_node *remote_node;
if (!rsnd_io_to_mod_ssi(io)) if (!rsnd_io_to_mod_ssi(io))
return; return;
remote_node = of_graph_get_remote_port_parent(endpoint);
/* HDMI0 */ /* HDMI0 */
if (strstr(remote_node->full_name, "hdmi@fead0000")) { if (strstr(remote_node->full_name, "hdmi@fead0000")) {
rsnd_flags_set(io, RSND_STREAM_HDMI0); rsnd_flags_set(io, RSND_STREAM_HDMI0);
@ -1111,6 +1116,8 @@ static void rsnd_parse_connect_graph(struct rsnd_priv *priv,
} }
rsnd_parse_tdm_split_mode(priv, io, endpoint); rsnd_parse_tdm_split_mode(priv, io, endpoint);
of_node_put(remote_node);
} }
void rsnd_parse_connect_common(struct rsnd_dai *rdai, void rsnd_parse_connect_common(struct rsnd_dai *rdai,