aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/azt3328.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/azt3328.c
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/azt3328.c')
-rw-r--r--sound/pci/azt3328.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c
index 496f14c1a731..f0b4d7493af5 100644
--- a/sound/pci/azt3328.c
+++ b/sound/pci/azt3328.c
@@ -2862,7 +2862,7 @@ snd_azf3328_resume(struct pci_dev *pci)
2862#endif /* CONFIG_PM */ 2862#endif /* CONFIG_PM */
2863 2863
2864 2864
2865static struct pci_driver driver = { 2865static struct pci_driver azf3328_driver = {
2866 .name = KBUILD_MODNAME, 2866 .name = KBUILD_MODNAME,
2867 .id_table = snd_azf3328_ids, 2867 .id_table = snd_azf3328_ids,
2868 .probe = snd_azf3328_probe, 2868 .probe = snd_azf3328_probe,
@@ -2873,23 +2873,4 @@ static struct pci_driver driver = {
2873#endif 2873#endif
2874}; 2874};
2875 2875
2876static int __init 2876module_pci_driver(azf3328_driver);
2877alsa_card_azf3328_init(void)
2878{
2879 int err;
2880 snd_azf3328_dbgcallenter();
2881 err = pci_register_driver(&driver);
2882 snd_azf3328_dbgcallleave();
2883 return err;
2884}
2885
2886static void __exit
2887alsa_card_azf3328_exit(void)
2888{
2889 snd_azf3328_dbgcallenter();
2890 pci_unregister_driver(&driver);
2891 snd_azf3328_dbgcallleave();
2892}
2893
2894module_init(alsa_card_azf3328_init)
2895module_exit(alsa_card_azf3328_exit)