Commit 4726a57b authored by Joe Perches's avatar Joe Perches Committed by Mark Brown

ASoC: Remove unnecessary casts of private_data

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 8ff23610
...@@ -800,7 +800,7 @@ static void davinci_pcm_free(struct snd_pcm *pcm) ...@@ -800,7 +800,7 @@ static void davinci_pcm_free(struct snd_pcm *pcm)
dma_free_writecombine(pcm->card->dev, buf->bytes, dma_free_writecombine(pcm->card->dev, buf->bytes,
buf->area, buf->addr); buf->area, buf->addr);
buf->area = NULL; buf->area = NULL;
iram_dma = (struct snd_dma_buffer *)buf->private_data; iram_dma = buf->private_data;
if (iram_dma) { if (iram_dma) {
sram_free(iram_dma->area, iram_dma->bytes); sram_free(iram_dma->area, iram_dma->bytes);
kfree(iram_dma); kfree(iram_dma);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment