aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/es1938.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c
index 17fa80c23870..e8b8ebf99635 100644
--- a/sound/pci/es1938.c
+++ b/sound/pci/es1938.c
@@ -1390,7 +1390,8 @@ static int es1938_suspend(snd_card_t *card, pm_message_t state)
1390 *d = snd_es1938_reg_read(chip, *s); 1390 *d = snd_es1938_reg_read(chip, *s);
1391 1391
1392 outb(0x00, SLIO_REG(chip, IRQCONTROL)); /* disable irqs */ 1392 outb(0x00, SLIO_REG(chip, IRQCONTROL)); /* disable irqs */
1393 1393 if (chip->irq >= 0)
1394 free_irq(chip->irq, (void *)chip);
1394 pci_disable_device(chip->pci); 1395 pci_disable_device(chip->pci);
1395 return 0; 1396 return 0;
1396} 1397}
@@ -1401,6 +1402,7 @@ static int es1938_resume(snd_card_t *card)
1401 unsigned char *s, *d; 1402 unsigned char *s, *d;
1402 1403
1403 pci_enable_device(chip->pci); 1404 pci_enable_device(chip->pci);
1405 request_irq(chip->pci->irq, snd_es1938_interrupt, SA_INTERRUPT|SA_SHIRQ, "ES1938", (void *)chip);
1404 snd_es1938_chip_init(chip); 1406 snd_es1938_chip_init(chip);
1405 1407
1406 /* restore mixer-related registers */ 1408 /* restore mixer-related registers */