]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/es1968.c
[ALSA] Fix synchronize_irq() bugs, redundancies
[linux-2.6-omap-h63xx.git] / sound / pci / es1968.c
index 13837989606136af7e52cbe79d18c40e86f64e30..1bf298d214b90462cfe7b5253c7d4d0f6c097fd1 100644 (file)
@@ -2475,7 +2475,8 @@ static inline void snd_es1968_free_gameport(struct es1968 *chip) { }
 static int snd_es1968_free(struct es1968 *chip)
 {
        if (chip->io_port) {
-               synchronize_irq(chip->irq);
+               if (chip->irq >= 0)
+                       synchronize_irq(chip->irq);
                outw(1, chip->io_port + 0x04); /* clear WP interrupts */
                outw(0, chip->io_port + ESM_PORT_HOST_IRQ); /* disable IRQ */
        }