aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/atiixp_modem.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/atiixp_modem.c
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/atiixp_modem.c')
-rw-r--r--sound/pci/atiixp_modem.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c
index 524d35f31232..30a4fd96ce73 100644
--- a/sound/pci/atiixp_modem.c
+++ b/sound/pci/atiixp_modem.c
@@ -1331,7 +1331,7 @@ static void __devexit snd_atiixp_remove(struct pci_dev *pci)
1331 pci_set_drvdata(pci, NULL); 1331 pci_set_drvdata(pci, NULL);
1332} 1332}
1333 1333
1334static struct pci_driver driver = { 1334static struct pci_driver atiixp_modem_driver = {
1335 .name = KBUILD_MODNAME, 1335 .name = KBUILD_MODNAME,
1336 .id_table = snd_atiixp_ids, 1336 .id_table = snd_atiixp_ids,
1337 .probe = snd_atiixp_probe, 1337 .probe = snd_atiixp_probe,
@@ -1342,16 +1342,4 @@ static struct pci_driver driver = {
1342#endif 1342#endif
1343}; 1343};
1344 1344
1345 1345module_pci_driver(atiixp_modem_driver);
1346static int __init alsa_card_atiixp_init(void)
1347{
1348 return pci_register_driver(&driver);
1349}
1350
1351static void __exit alsa_card_atiixp_exit(void)
1352{
1353 pci_unregister_driver(&driver);
1354}
1355
1356module_init(alsa_card_atiixp_init)
1357module_exit(alsa_card_atiixp_exit)