diff options
Diffstat (limited to 'sound/pci/ymfpci/ymfpci.c')
-rw-r--r-- | sound/pci/ymfpci/ymfpci.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 42499a94df41..9e30e2c76c7f 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -271,6 +271,8 @@ static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci, | |||
271 | } | 271 | } |
272 | chip->fm_res = fm_res; | 272 | chip->fm_res = fm_res; |
273 | chip->mpu_res = mpu_res; | 273 | chip->mpu_res = mpu_res; |
274 | card->private_data = chip; | ||
275 | |||
274 | strcpy(card->driver, str); | 276 | strcpy(card->driver, str); |
275 | sprintf(card->shortname, "Yamaha DS-XG (%s)", str); | 277 | sprintf(card->shortname, "Yamaha DS-XG (%s)", str); |
276 | sprintf(card->longname, "%s at 0x%lx, irq %i", | 278 | sprintf(card->longname, "%s at 0x%lx, irq %i", |
@@ -347,7 +349,10 @@ static struct pci_driver driver = { | |||
347 | .id_table = snd_ymfpci_ids, | 349 | .id_table = snd_ymfpci_ids, |
348 | .probe = snd_card_ymfpci_probe, | 350 | .probe = snd_card_ymfpci_probe, |
349 | .remove = __devexit_p(snd_card_ymfpci_remove), | 351 | .remove = __devexit_p(snd_card_ymfpci_remove), |
350 | SND_PCI_PM_CALLBACKS | 352 | #ifdef CONFIG_PM |
353 | .suspend = snd_ymfpci_suspend, | ||
354 | .resume = snd_ymfpci_resume, | ||
355 | #endif | ||
351 | }; | 356 | }; |
352 | 357 | ||
353 | static int __init alsa_card_ymfpci_init(void) | 358 | static int __init alsa_card_ymfpci_init(void) |