X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fpci%2Fvia82xx.c;h=b585cc3e4c472eea6434e89d9ed463038f6a61c9;hb=c305e3d38e5f54a48a4618496cdc1ada970ebf68;hp=a756be661f9aa94e1e1d4af3c77a666f02a25355;hpb=7924e4f6519dd5b349ed146fe9fe35206730be67;p=linux-2.6 diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index a756be661f..b585cc3e4c 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c @@ -2236,7 +2236,7 @@ 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); + if (chip->irq >= 0) free_irq(chip->irq, chip); __end_hw: