aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolin Chen2013-12-20 16:41:04 +0800
committerMark Brown2013-12-21 14:47:36 +0000
commit190af12dad975f2ea7d69d1c5c9d36fec64da767 (patch)
tree78f3a276adf73de174227322e0439cc950d729f1
parent15b29dae6604d2d2daf586429ff12f26272a868a (diff)
ASoC: fsl_sai: Make dev_err information neater
Since using dev_err() there's no need to mention SAI any more, it will print the full name of the driver -- fsl_sai. Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com> Reviewed-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/fsl/fsl_sai.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index fc4cd95ad0a9..68d666b491de 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -108,18 +108,14 @@ static int fsl_sai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq,
FSL_FMT_TRANSMITTER);
if (ret) {
- dev_err(cpu_dai->dev,
- "Cannot set SAI's transmitter sysclk: %d\n",
- ret);
+ dev_err(cpu_dai->dev, "Cannot set tx sysclk: %d\n", ret);
goto err_clk;
}
ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq,
FSL_FMT_RECEIVER);
if (ret) {
- dev_err(cpu_dai->dev,
- "Cannot set SAI's receiver sysclk: %d\n",
- ret);
+ dev_err(cpu_dai->dev, "Cannot set rx sysclk: %d\n", ret);
goto err_clk;
}
@@ -220,17 +216,13 @@ static int fsl_sai_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
ret = fsl_sai_set_dai_fmt_tr(cpu_dai, fmt, FSL_FMT_TRANSMITTER);
if (ret) {
- dev_err(cpu_dai->dev,
- "Cannot set SAI's transmitter format: %d\n",
- ret);
+ dev_err(cpu_dai->dev, "Cannot set tx format: %d\n", ret);
goto err_clk;
}
ret = fsl_sai_set_dai_fmt_tr(cpu_dai, fmt, FSL_FMT_RECEIVER);
if (ret) {
- dev_err(cpu_dai->dev,
- "Cannot set SAI's receiver format: %d\n",
- ret);
+ dev_err(cpu_dai->dev, "Cannot set rx format: %d\n", ret);
goto err_clk;
}