aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/cs46xx/cs46xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/cs46xx/cs46xx.c')
-rw-r--r--sound/pci/cs46xx/cs46xx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c
index 7d6b29e5433a..c590602e20cd 100644
--- a/sound/pci/cs46xx/cs46xx.c
+++ b/sound/pci/cs46xx/cs46xx.c
@@ -98,6 +98,7 @@ static int __devinit snd_card_cs46xx_probe(struct pci_dev *pci,
98 snd_card_free(card); 98 snd_card_free(card);
99 return err; 99 return err;
100 } 100 }
101 card->private_data = chip;
101 chip->accept_valid = mmap_valid[dev]; 102 chip->accept_valid = mmap_valid[dev];
102 if ((err = snd_cs46xx_pcm(chip, 0, NULL)) < 0) { 103 if ((err = snd_cs46xx_pcm(chip, 0, NULL)) < 0) {
103 snd_card_free(card); 104 snd_card_free(card);
@@ -166,7 +167,10 @@ static struct pci_driver driver = {
166 .id_table = snd_cs46xx_ids, 167 .id_table = snd_cs46xx_ids,
167 .probe = snd_card_cs46xx_probe, 168 .probe = snd_card_cs46xx_probe,
168 .remove = __devexit_p(snd_card_cs46xx_remove), 169 .remove = __devexit_p(snd_card_cs46xx_remove),
169 SND_PCI_PM_CALLBACKS 170#ifdef CONFIG_PM
171 .suspend = snd_cs46xx_suspend,
172 .resume = snd_cs46xx_resume,
173#endif
170}; 174};
171 175
172static int __init alsa_card_cs46xx_init(void) 176static int __init alsa_card_cs46xx_init(void)