aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/via82xx.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-04-24 06:25:00 -0400
committerTakashi Iwai <tiwai@suse.de>2012-04-24 06:25:00 -0400
commite9f66d9b9ce03f74a52894cebedf12b67f65dd24 (patch)
tree6fc07ea37548ac3c9f808ee25c10fcfeb34236ea /sound/pci/via82xx.c
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/via82xx.c')
-rw-r--r--sound/pci/via82xx.c15
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
2622static struct pci_driver driver = { 2622static 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
2633static int __init alsa_card_via82xx_init(void) 2633module_pci_driver(via82xx_driver);
2634{
2635 return pci_register_driver(&driver);
2636}
2637
2638static void __exit alsa_card_via82xx_exit(void)
2639{
2640 pci_unregister_driver(&driver);
2641}
2642
2643module_init(alsa_card_via82xx_init)
2644module_exit(alsa_card_via82xx_exit)