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/ens1370.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/ens1370.c')
-rw-r--r-- | sound/pci/ens1370.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index 47a245e84190..3821c81d1c99 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -2488,7 +2488,7 @@ static void __devexit snd_audiopci_remove(struct pci_dev *pci) | |||
2488 | pci_set_drvdata(pci, NULL); | 2488 | pci_set_drvdata(pci, NULL); |
2489 | } | 2489 | } |
2490 | 2490 | ||
2491 | static struct pci_driver driver = { | 2491 | static struct pci_driver ens137x_driver = { |
2492 | .name = KBUILD_MODNAME, | 2492 | .name = KBUILD_MODNAME, |
2493 | .id_table = snd_audiopci_ids, | 2493 | .id_table = snd_audiopci_ids, |
2494 | .probe = snd_audiopci_probe, | 2494 | .probe = snd_audiopci_probe, |
@@ -2499,15 +2499,4 @@ static struct pci_driver driver = { | |||
2499 | #endif | 2499 | #endif |
2500 | }; | 2500 | }; |
2501 | 2501 | ||
2502 | static int __init alsa_card_ens137x_init(void) | 2502 | module_pci_driver(ens137x_driver); |
2503 | { | ||
2504 | return pci_register_driver(&driver); | ||
2505 | } | ||
2506 | |||
2507 | static void __exit alsa_card_ens137x_exit(void) | ||
2508 | { | ||
2509 | pci_unregister_driver(&driver); | ||
2510 | } | ||
2511 | |||
2512 | module_init(alsa_card_ens137x_init) | ||
2513 | module_exit(alsa_card_ens137x_exit) | ||