summaryrefslogtreecommitdiff
path: root/sound/pci/ad1889.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-04-24 14:25:00 +0400
committerTakashi Iwai <tiwai@suse.de>2012-04-24 14:25:00 +0400
commite9f66d9b9ce03f74a52894cebedf12b67f65dd24 (patch)
tree6fc07ea37548ac3c9f808ee25c10fcfeb34236ea /sound/pci/ad1889.c
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
downloadlinux-e9f66d9b9ce03f74a52894cebedf12b67f65dd24.tar.xz
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ad1889.c')
-rw-r--r--sound/pci/ad1889.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c
index 9d91d61902b4..e672ff4df2da 100644
--- a/sound/pci/ad1889.c
+++ b/sound/pci/ad1889.c
@@ -1062,17 +1062,4 @@ static struct pci_driver ad1889_pci_driver = {
.remove = __devexit_p(snd_ad1889_remove),
};
-static int __init
-alsa_ad1889_init(void)
-{
- return pci_register_driver(&ad1889_pci_driver);
-}
-
-static void __exit
-alsa_ad1889_fini(void)
-{
- pci_unregister_driver(&ad1889_pci_driver);
-}
-
-module_init(alsa_ad1889_init);
-module_exit(alsa_ad1889_fini);
+module_pci_driver(ad1889_pci_driver);