aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2013-12-19 23:17:38 -0500
committerMark Brown <broonie@linaro.org>2013-12-21 09:33:10 -0500
commita6af47ae5399baf4f5a2426b2121c1bcb9da4019 (patch)
treea50764b5521d2d333e0444809cbb199ffe5ec8dd /sound/soc/fsl
parentb6344859b911990152e5ee411e62b82eb968004f (diff)
ASoC: fsl-sai: Remove fsl_sai_remove()
There is no need of this function and makes the code slightly shorter Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl_sai.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 50a797e65781..1868ec34be10 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -385,19 +385,8 @@ static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai)
385 return 0; 385 return 0;
386} 386}
387 387
388static int fsl_sai_dai_remove(struct snd_soc_dai *cpu_dai)
389{
390 cpu_dai->playback_dma_data = NULL;
391 cpu_dai->capture_dma_data = NULL;
392
393 snd_soc_dai_set_drvdata(cpu_dai, NULL);
394
395 return 0;
396}
397
398static struct snd_soc_dai_driver fsl_sai_dai = { 388static struct snd_soc_dai_driver fsl_sai_dai = {
399 .probe = fsl_sai_dai_probe, 389 .probe = fsl_sai_dai_probe,
400 .remove = fsl_sai_dai_remove,
401 .playback = { 390 .playback = {
402 .channels_min = 1, 391 .channels_min = 1,
403 .channels_max = 2, 392 .channels_max = 2,