aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/sh/siu_pcm.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-02 13:56:12 +0100
committerMark Brown <broonie@kernel.org>2015-01-05 21:30:05 +0000
commit0db54e74a9e44afb92bc547277827258dbf5dc8f (patch)
tree078dfe8c3b822d14a510eb19c45b7e924b0a3c33 /sound/soc/sh/siu_pcm.c
parentLinux 3.19-rc1 (diff)
downloadwireguard-linux-0db54e74a9e44afb92bc547277827258dbf5dc8f.tar.xz
wireguard-linux-0db54e74a9e44afb92bc547277827258dbf5dc8f.zip
ASoC: sh: Remove unnecessary snd_pcm_lib_preallocate_free_for_all()
The ALSA core takes care that all preallocated memory is freed when the PCM itself is freed. There is no need to do this manually in the driver. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/siu_pcm.c')
-rw-r--r--sound/soc/sh/siu_pcm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/sh/siu_pcm.c b/sound/soc/sh/siu_pcm.c
index 32eb6da2d2bd..82902f56e82f 100644
--- a/sound/soc/sh/siu_pcm.c
+++ b/sound/soc/sh/siu_pcm.c
@@ -589,7 +589,6 @@ static void siu_pcm_free(struct snd_pcm *pcm)
tasklet_kill(&port_info->playback.tasklet);
siu_free_port(port_info);
- snd_pcm_lib_preallocate_free_for_all(pcm);
dev_dbg(pcm->card->dev, "%s\n", __func__);
}