diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-03-11 08:15:30 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 12:00:23 +0200 |
commit | 9f2f0f7c4e997a74ff9fb8e2e2ed0daa21962e97 (patch) | |
tree | 371b781bbb87124625ed8ca6c7bd90898cc0cf90 /sound/spi | |
parent | 91662577979cadf945cd3ffc4c470e5b91378370 (diff) | |
download | linux-9f2f0f7c4e997a74ff9fb8e2e2ed0daa21962e97.tar.gz linux-9f2f0f7c4e997a74ff9fb8e2e2ed0daa21962e97.tar.xz |
[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/spi')
-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 = { .pointer = snd_at73c213_pcm_pointer, }; -static void snd_at73c213_pcm_free(struct snd_pcm *pcm) -{ - struct snd_at73c213 *chip = snd_pcm_chip(pcm); - if (chip->pcm) { - snd_pcm_lib_preallocate_free_for_all(chip->pcm); - chip->pcm = NULL; - } -} - static int __devinit snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device) { struct snd_pcm *pcm; @@ -345,7 +336,6 @@ static int __devinit snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device) goto out; pcm->private_data = chip; - pcm->private_free = snd_at73c213_pcm_free; pcm->info_flags = SNDRV_PCM_INFO_BLOCK_TRANSFER; strcpy(pcm->name, "at73c213"); chip->pcm = pcm; |