]> err.no Git - linux-2.6/blobdiff - sound/pci/via82xx.c
Ensure interrupted recovery completed properly (v1 metadata plus bitmap)
[linux-2.6] / sound / pci / via82xx.c
index ad58ca5bf80a1cd14fa3436fe2f15f9aca5d4a6e..b585cc3e4c472eea6434e89d9ed463038f6a61c9 100644 (file)
@@ -46,7 +46,6 @@
  *     - Optimize position calculation for the 823x chips. 
  */
 
-#include <sound/driver.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
@@ -2237,10 +2236,10 @@ static int snd_via82xx_free(struct via82xx *chip)
        /* disable interrupts */
        for (i = 0; i < chip->num_devs; i++)
                snd_via82xx_channel_reset(chip, &chip->devs[i]);
-       synchronize_irq(chip->irq);
-      __end_hw:
+
        if (chip->irq >= 0)
                free_irq(chip->irq, chip);
+ __end_hw:
        release_and_free_resource(chip->mpu_res);
        pci_release_regions(chip->pci);