summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic/simple-card-utils.c
diff options
context:
space:
mode:
authorKuninori Morimoto2017-06-05 06:28:45 +0200
committerMark Brown2017-06-06 20:46:08 +0200
commit8e16638256425faf74c5b9ffa40e5f0d9aa4413b (patch)
treebdac8477d96698064bf59283d625cd2acdc91605 /sound/soc/generic/simple-card-utils.c
parentASoC: simple-card-utils: share same dev_dbg() for Dai Name (diff)
downloadkernel-qcow2-linux-8e16638256425faf74c5b9ffa40e5f0d9aa4413b.tar.gz
kernel-qcow2-linux-8e16638256425faf74c5b9ffa40e5f0d9aa4413b.tar.xz
kernel-qcow2-linux-8e16638256425faf74c5b9ffa40e5f0d9aa4413b.zip
ASoC: simple-card-utils: share same dev_dbg() for sysclk
Let's share same debug message for sysclk 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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c
index 1f08064f65b1..d9d8b8a58348 100644
--- a/sound/soc/generic/simple-card-utils.c
+++ b/sound/soc/generic/simple-card-utils.c
@@ -113,7 +113,8 @@ EXPORT_SYMBOL_GPL(asoc_simple_card_parse_card_name);
int asoc_simple_card_parse_clk(struct device *dev,
struct device_node *node,
struct device_node *dai_of_node,
- struct asoc_simple_dai *simple_dai)
+ struct asoc_simple_dai *simple_dai,
+ const char *name)
{
struct clk *clk;
u32 val;
@@ -136,6 +137,8 @@ int asoc_simple_card_parse_clk(struct device *dev,
simple_dai->sysclk = clk_get_rate(clk);
}
+ dev_dbg(dev, "%s : sysclk = %d\n", name, simple_dai->sysclk);
+
return 0;
}
EXPORT_SYMBOL_GPL(asoc_simple_card_parse_clk);