summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic/simple-card-utils.c
diff options
context:
space:
mode:
authorKuninori Morimoto2018-11-21 03:08:59 +0100
committerMark Brown2018-11-21 14:28:05 +0100
commitc0f4697c5dbca0c9bdd1264bcf2d7c5d15a14f67 (patch)
treeb42976fa070bd87271a8191b5733e3f60916fc03 /sound/soc/generic/simple-card-utils.c
parentASoC: rsnd: makes rsnd_ssi_is_dma_mode() static (diff)
downloadkernel-qcow2-linux-c0f4697c5dbca0c9bdd1264bcf2d7c5d15a14f67.tar.gz
kernel-qcow2-linux-c0f4697c5dbca0c9bdd1264bcf2d7c5d15a14f67.tar.xz
kernel-qcow2-linux-c0f4697c5dbca0c9bdd1264bcf2d7c5d15a14f67.zip
ASoC: simple-card-utils: remove asoc_simple_card_clk_register()
asoc_simple_card_clk_register() is used but only 1 user, and very pointless code. Let's remove 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-card-utils.c')
-rw-r--r--sound/soc/generic/simple-card-utils.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c
index f34cc6cddfa2..996bfe42bc8d 100644
--- a/sound/soc/generic/simple-card-utils.c
+++ b/sound/soc/generic/simple-card-utils.c
@@ -151,12 +151,6 @@ int asoc_simple_card_parse_card_name(struct snd_soc_card *card,
}
EXPORT_SYMBOL_GPL(asoc_simple_card_parse_card_name);
-static void asoc_simple_card_clk_register(struct asoc_simple_dai *dai,
- struct clk *clk)
-{
- dai->clk = clk;
-}
-
int asoc_simple_card_clk_enable(struct asoc_simple_dai *dai)
{
return clk_prepare_enable(dai->clk);
@@ -200,7 +194,7 @@ int asoc_simple_card_parse_clk(struct device *dev,
if (!IS_ERR(clk)) {
simple_dai->sysclk = clk_get_rate(clk);
- asoc_simple_card_clk_register(simple_dai, clk);
+ simple_dai->clk = clk;
} else if (!of_property_read_u32(node, "system-clock-frequency", &val)) {
simple_dai->sysclk = val;
} else {