aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/fsl_sai.c
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2013-12-20 03:41:04 -0500
committerMark Brown <broonie@linaro.org>2013-12-21 09:47:36 -0500
commit190af12dad975f2ea7d69d1c5c9d36fec64da767 (patch)
tree78f3a276adf73de174227322e0439cc950d729f1 /sound/soc/fsl/fsl_sai.c
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>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-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,
108 ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq, 108 ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq,
109 FSL_FMT_TRANSMITTER); 109 FSL_FMT_TRANSMITTER);
110 if (ret) { 110 if (ret) {
111 dev_err(cpu_dai->dev, 111 dev_err(cpu_dai->dev, "Cannot set tx sysclk: %d\n", ret);
112 "Cannot set SAI's transmitter sysclk: %d\n",
113 ret);
114 goto err_clk; 112 goto err_clk;
115 } 113 }
116 114
117 ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq, 115 ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq,
118 FSL_FMT_RECEIVER); 116 FSL_FMT_RECEIVER);
119 if (ret) { 117 if (ret) {
120 dev_err(cpu_dai->dev, 118 dev_err(cpu_dai->dev, "Cannot set rx sysclk: %d\n", ret);
121 "Cannot set SAI's receiver sysclk: %d\n",
122 ret);
123 goto err_clk; 119 goto err_clk;
124 } 120 }
125 121
@@ -220,17 +216,13 @@ static int fsl_sai_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
220 216
221 ret = fsl_sai_set_dai_fmt_tr(cpu_dai, fmt, FSL_FMT_TRANSMITTER); 217 ret = fsl_sai_set_dai_fmt_tr(cpu_dai, fmt, FSL_FMT_TRANSMITTER);
222 if (ret) { 218 if (ret) {
223 dev_err(cpu_dai->dev, 219 dev_err(cpu_dai->dev, "Cannot set tx format: %d\n", ret);
224 "Cannot set SAI's transmitter format: %d\n",
225 ret);
226 goto err_clk; 220 goto err_clk;
227 } 221 }
228 222
229 ret = fsl_sai_set_dai_fmt_tr(cpu_dai, fmt, FSL_FMT_RECEIVER); 223 ret = fsl_sai_set_dai_fmt_tr(cpu_dai, fmt, FSL_FMT_RECEIVER);
230 if (ret) { 224 if (ret) {
231 dev_err(cpu_dai->dev, 225 dev_err(cpu_dai->dev, "Cannot set rx format: %d\n", ret);
232 "Cannot set SAI's receiver format: %d\n",
233 ret);
234 goto err_clk; 226 goto err_clk;
235 } 227 }
236 228