diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-03-11 03:15:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:23 -0400 |
commit | 9f2f0f7c4e997a74ff9fb8e2e2ed0daa21962e97 (patch) | |
tree | 371b781bbb87124625ed8ca6c7bd90898cc0cf90 /sound | |
parent | 91662577979cadf945cd3ffc4c470e5b91378370 (diff) |
[ALSA] at73c213: remove redundant private_free routine
snd_pcm_lib_preallocate_free_for_all() is called from snd_pcm_free() just
after calling the private_free routine. So there should be no need to call
it in driver's private_free routine.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/spi/at73c213.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index 1355fe0c6674..aa571152f034 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c | |||
@@ -325,15 +325,6 @@ static struct snd_pcm_ops at73c213_playback_ops = { | |||
325 | .pointer = snd_at73c213_pcm_pointer, | 325 | .pointer = snd_at73c213_pcm_pointer, |
326 | }; | 326 | }; |
327 | 327 | ||
328 | static void snd_at73c213_pcm_free(struct snd_pcm *pcm) | ||
329 | { | ||
330 | struct snd_at73c213 *chip = snd_pcm_chip(pcm); | ||
331 | if (chip->pcm) { | ||
332 | snd_pcm_lib_preallocate_free_for_all(chip->pcm); | ||
333 | chip->pcm = NULL; | ||
334 | } | ||
335 | } | ||
336 | |||
337 | static int __devinit snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device) | 328 | static int __devinit snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device) |
338 | { | 329 | { |
339 | struct snd_pcm *pcm; | 330 | struct snd_pcm *pcm; |
@@ -345,7 +336,6 @@ static int __devinit snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device) | |||
345 | goto out; | 336 | goto out; |
346 | 337 | ||
347 | pcm->private_data = chip; | 338 | pcm->private_data = chip; |
348 | pcm->private_free = snd_at73c213_pcm_free; | ||
349 | pcm->info_flags = SNDRV_PCM_INFO_BLOCK_TRANSFER; | 339 | pcm->info_flags = SNDRV_PCM_INFO_BLOCK_TRANSFER; |
350 | strcpy(pcm->name, "at73c213"); | 340 | strcpy(pcm->name, "at73c213"); |
351 | chip->pcm = pcm; | 341 | chip->pcm = pcm; |