Skip to contentSkip to conversation

ASoC: fsl-sai: Remove fsl_sai_remove()

PATCH Applied Xiubo Li 2 participants 2 messages Dec 20, 2013 – Dec 21, 2013

Subsystems (3)
lore
Share & tools
lore

Xiubo Li

author
#0 lore raw

PATCH 1/1 ASoC: fsl-sai: Remove fsl_sai_remove()

There is no need of this function and makes the code slightly shorter

---
 sound/soc/fsl/fsl_sai.c | 11 -----------
 1 file changed, 11 deletions(-)
sound/soc/fsl/fsl_sai.c +0 -11
index 50a797e..1868ec3 100644
@@ -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,
Signature · 1 line
1.8.4
maintainer Applied
#1 lore raw
Quoted 1 line · Xiubo Li

There is no need of this function and makes the code slightly shorter

Applied, thanks.