From: Xiubo Li Date: Fri, 20 Dec 2013 04:35:33 +0000 (+0800) Subject: ASoC: fsl-sai: Use snd_soc_dai_init_dma_data() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dd9f40602e96353c210805a99abd9af6abd28473;p=linux-beck.git ASoC: fsl-sai: Use snd_soc_dai_init_dma_data() Makes the code slightly shorter Signed-off-by: Xiubo Li Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 262d3107892e..b8cdbf8660fe 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -377,8 +377,8 @@ static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai) { struct fsl_sai *sai = dev_get_drvdata(cpu_dai->dev); - cpu_dai->playback_dma_data = &sai->dma_params_tx; - cpu_dai->capture_dma_data = &sai->dma_params_rx; + snd_soc_dai_init_dma_data(cpu_dai, &sai->dma_params_tx, + &sai->dma_params_rx); snd_soc_dai_set_drvdata(cpu_dai, sai);