diff options
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 = { | |||
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; |