diff options
Diffstat (limited to 'sound/pci/via82xx.c')
-rw-r--r-- | sound/pci/via82xx.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 75630408c6db..b5afab48943e 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -2619,7 +2619,7 @@ static void __devexit snd_via82xx_remove(struct pci_dev *pci) | |||
2619 | pci_set_drvdata(pci, NULL); | 2619 | pci_set_drvdata(pci, NULL); |
2620 | } | 2620 | } |
2621 | 2621 | ||
2622 | static struct pci_driver driver = { | 2622 | static struct pci_driver via82xx_driver = { |
2623 | .name = KBUILD_MODNAME, | 2623 | .name = KBUILD_MODNAME, |
2624 | .id_table = snd_via82xx_ids, | 2624 | .id_table = snd_via82xx_ids, |
2625 | .probe = snd_via82xx_probe, | 2625 | .probe = snd_via82xx_probe, |
@@ -2630,15 +2630,4 @@ static struct pci_driver driver = { | |||
2630 | #endif | 2630 | #endif |
2631 | }; | 2631 | }; |
2632 | 2632 | ||
2633 | static int __init alsa_card_via82xx_init(void) | 2633 | module_pci_driver(via82xx_driver); |
2634 | { | ||
2635 | return pci_register_driver(&driver); | ||
2636 | } | ||
2637 | |||
2638 | static void __exit alsa_card_via82xx_exit(void) | ||
2639 | { | ||
2640 | pci_unregister_driver(&driver); | ||
2641 | } | ||
2642 | |||
2643 | module_init(alsa_card_via82xx_init) | ||
2644 | module_exit(alsa_card_via82xx_exit) | ||