Skip to content

Commit

Permalink
ASoC: fsl-sai: Remove fsl_sai_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiubo Li authored and Mark Brown committed Dec 21, 2013
1 parent b634485 commit a6af47a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sound/soc/fsl/fsl_sai.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,19 +385,8 @@ static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai)
return 0;
}

static int fsl_sai_dai_remove(struct snd_soc_dai *cpu_dai)
{
cpu_dai->playback_dma_data = NULL;
cpu_dai->capture_dma_data = NULL;

snd_soc_dai_set_drvdata(cpu_dai, NULL);

return 0;
}

static struct snd_soc_dai_driver fsl_sai_dai = {
.probe = fsl_sai_dai_probe,
.remove = fsl_sai_dai_remove,
.playback = {
.channels_min = 1,
.channels_max = 2,
Expand Down

0 comments on commit a6af47a

Please sign in to comment.