From 50b229c2d5a4ce5adcaa204442734d64575f9316 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 5 Nov 2019 15:18:13 +0800 Subject: ASoC: imx-pcm-rpmsg: Remove the prtd prtd is not needed by this driver. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-pcm-rpmsg.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'sound/soc/fsl/imx-pcm-rpmsg.c') diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 005c5442e9e9..8da1345ccd06 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -162,7 +162,6 @@ static int imx_rpmsg_pcm_open(struct snd_pcm_substream *substream) struct fsl_rpmsg_i2s *rpmsg_i2s = dev_get_drvdata(cpu_dai->dev); struct i2s_info *i2s_info = &rpmsg_i2s->i2s_info; struct i2s_rpmsg *rpmsg; - struct dmaengine_pcm_runtime_data *prtd; int cmd; if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) @@ -196,12 +195,6 @@ static int imx_rpmsg_pcm_open(struct snd_pcm_substream *substream) i2s_info->send_message(rpmsg, i2s_info); - prtd = kzalloc(sizeof(*prtd), GFP_KERNEL); - if (!prtd) - return -ENOMEM; - - substream->runtime->private_data = prtd; - ret = snd_pcm_hw_constraint_integer(substream->runtime, SNDRV_PCM_HW_PARAM_PERIODS); if (ret < 0) @@ -226,8 +219,6 @@ static int imx_rpmsg_pcm_close(struct snd_pcm_substream *substream) struct fsl_rpmsg_i2s *rpmsg_i2s = dev_get_drvdata(cpu_dai->dev); struct i2s_info *i2s_info = &rpmsg_i2s->i2s_info; struct i2s_rpmsg *rpmsg; - struct dmaengine_pcm_runtime_data *prtd = - substream->runtime->private_data; if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) rpmsg = &i2s_info->rpmsg[I2S_TX_CLOSE]; @@ -243,8 +234,6 @@ static int imx_rpmsg_pcm_close(struct snd_pcm_substream *substream) del_timer(&i2s_info->stream_timer[substream->stream].timer); - kfree(prtd); - rtd->dai_link->ignore_suspend = 0; if (i2s_info->msg_drop_count[substream->stream]) -- cgit v1.2.3