diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-01-23 07:29:42 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-23 17:46:33 +0000 |
commit | e984fd61e860ce3c45e79d69cf214b8cc6cae7d9 (patch) | |
tree | a45d2fde7ff7103b3f08693ff37466c698f9c17d /sound/soc/generic/simple-scu-card.c | |
parent | a5de5b74a50113564a1e0850e2da96c37c35e55d (diff) | |
download | talos-obmc-linux-e984fd61e860ce3c45e79d69cf214b8cc6cae7d9.tar.gz talos-obmc-linux-e984fd61e860ce3c45e79d69cf214b8cc6cae7d9.zip |
ASoC: simple-card: use devm_get_clk_from_child()
Current simple-card-utils is getting clk by of_clk_get(), but didn't call
clk_free(). Now we can use devm_get_clk_from_child() for this purpose.
Let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic/simple-scu-card.c')
-rw-r--r-- | sound/soc/generic/simple-scu-card.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c index bb86ee042490..308ff4c11a8d 100644 --- a/sound/soc/generic/simple-scu-card.c +++ b/sound/soc/generic/simple-scu-card.c @@ -128,7 +128,7 @@ static int asoc_simple_card_dai_link_of(struct device_node *np, if (ret) return ret; - ret = asoc_simple_card_parse_clk_cpu(np, dai_link, dai_props); + ret = asoc_simple_card_parse_clk_cpu(dev, np, dai_link, dai_props); if (ret < 0) return ret; @@ -153,7 +153,7 @@ static int asoc_simple_card_dai_link_of(struct device_node *np, if (ret < 0) return ret; - ret = asoc_simple_card_parse_clk_codec(np, dai_link, dai_props); + ret = asoc_simple_card_parse_clk_codec(dev, np, dai_link, dai_props); if (ret < 0) return ret; |