aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/fm801.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/fm801.c
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/fm801.c')
-rw-r--r--sound/pci/fm801.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c
index a416ea8af3e9..f69662322750 100644
--- a/sound/pci/fm801.c
+++ b/sound/pci/fm801.c
@@ -1416,7 +1416,7 @@ static int snd_fm801_resume(struct pci_dev *pci)
1416} 1416}
1417#endif 1417#endif
1418 1418
1419static struct pci_driver driver = { 1419static struct pci_driver fm801_driver = {
1420 .name = KBUILD_MODNAME, 1420 .name = KBUILD_MODNAME,
1421 .id_table = snd_fm801_ids, 1421 .id_table = snd_fm801_ids,
1422 .probe = snd_card_fm801_probe, 1422 .probe = snd_card_fm801_probe,
@@ -1427,15 +1427,4 @@ static struct pci_driver driver = {
1427#endif 1427#endif
1428}; 1428};
1429 1429
1430static int __init alsa_card_fm801_init(void) 1430module_pci_driver(fm801_driver);
1431{
1432 return pci_register_driver(&driver);
1433}
1434
1435static void __exit alsa_card_fm801_exit(void)
1436{
1437 pci_unregister_driver(&driver);
1438}
1439
1440module_init(alsa_card_fm801_init)
1441module_exit(alsa_card_fm801_exit)