Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6af47ae authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown
Browse files

ASoC: fsl-sai: Remove fsl_sai_remove()



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

Signed-off-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent b6344859
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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,