diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-04-24 06:25:00 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-24 06:25:00 -0400 |
commit | e9f66d9b9ce03f74a52894cebedf12b67f65dd24 (patch) | |
tree | 6fc07ea37548ac3c9f808ee25c10fcfeb34236ea /sound/pci/fm801.c | |
parent | 68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (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.c | 15 |
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 | ||
1419 | static struct pci_driver driver = { | 1419 | static 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 | ||
1430 | static int __init alsa_card_fm801_init(void) | 1430 | module_pci_driver(fm801_driver); |
1431 | { | ||
1432 | return pci_register_driver(&driver); | ||
1433 | } | ||
1434 | |||
1435 | static void __exit alsa_card_fm801_exit(void) | ||
1436 | { | ||
1437 | pci_unregister_driver(&driver); | ||
1438 | } | ||
1439 | |||
1440 | module_init(alsa_card_fm801_init) | ||
1441 | module_exit(alsa_card_fm801_exit) | ||