diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 07:56:11 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 16:29:47 -0500 |
commit | ddf3335b3e716ab2161e4db5b70984aef35075a3 (patch) | |
tree | 5f87cbb4231a7c35e1557ff7f61d8a5547c87756 /sound | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
ASoC: rcar: 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')
-rw-r--r-- | sound/soc/sh/rcar/core.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 75308bbc2ce8..d9c81cda09f7 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
@@ -1140,15 +1140,9 @@ static int rsnd_pcm_new(struct snd_soc_pcm_runtime *rtd) | |||
1140 | PREALLOC_BUFFER, PREALLOC_BUFFER_MAX); | 1140 | PREALLOC_BUFFER, PREALLOC_BUFFER_MAX); |
1141 | } | 1141 | } |
1142 | 1142 | ||
1143 | static void rsnd_pcm_free(struct snd_pcm *pcm) | ||
1144 | { | ||
1145 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
1146 | } | ||
1147 | |||
1148 | static struct snd_soc_platform_driver rsnd_soc_platform = { | 1143 | static struct snd_soc_platform_driver rsnd_soc_platform = { |
1149 | .ops = &rsnd_pcm_ops, | 1144 | .ops = &rsnd_pcm_ops, |
1150 | .pcm_new = rsnd_pcm_new, | 1145 | .pcm_new = rsnd_pcm_new, |
1151 | .pcm_free = rsnd_pcm_free, | ||
1152 | }; | 1146 | }; |
1153 | 1147 | ||
1154 | static const struct snd_soc_component_driver rsnd_soc_component = { | 1148 | static const struct snd_soc_component_driver rsnd_soc_component = { |