diff options
Diffstat (limited to 'sound/pci/ymfpci/ymfpci.c')
-rw-r--r-- | sound/pci/ymfpci/ymfpci.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 94ab728f5ca8..9a1d01d653a7 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -350,7 +350,7 @@ static void __devexit snd_card_ymfpci_remove(struct pci_dev *pci) | |||
350 | pci_set_drvdata(pci, NULL); | 350 | pci_set_drvdata(pci, NULL); |
351 | } | 351 | } |
352 | 352 | ||
353 | static struct pci_driver driver = { | 353 | static struct pci_driver ymfpci_driver = { |
354 | .name = KBUILD_MODNAME, | 354 | .name = KBUILD_MODNAME, |
355 | .id_table = snd_ymfpci_ids, | 355 | .id_table = snd_ymfpci_ids, |
356 | .probe = snd_card_ymfpci_probe, | 356 | .probe = snd_card_ymfpci_probe, |
@@ -361,15 +361,4 @@ static struct pci_driver driver = { | |||
361 | #endif | 361 | #endif |
362 | }; | 362 | }; |
363 | 363 | ||
364 | static int __init alsa_card_ymfpci_init(void) | 364 | module_pci_driver(ymfpci_driver); |
365 | { | ||
366 | return pci_register_driver(&driver); | ||
367 | } | ||
368 | |||
369 | static void __exit alsa_card_ymfpci_exit(void) | ||
370 | { | ||
371 | pci_unregister_driver(&driver); | ||
372 | } | ||
373 | |||
374 | module_init(alsa_card_ymfpci_init) | ||
375 | module_exit(alsa_card_ymfpci_exit) | ||