aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/lx6464es
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/lx6464es
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/lx6464es')
-rw-r--r--sound/pci/lx6464es/lx6464es.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c
index d94c0c292bd0..d1ab43706735 100644
--- a/sound/pci/lx6464es/lx6464es.c
+++ b/sound/pci/lx6464es/lx6464es.c
@@ -1141,24 +1141,11 @@ static void __devexit snd_lx6464es_remove(struct pci_dev *pci)
1141} 1141}
1142 1142
1143 1143
1144static struct pci_driver driver = { 1144static struct pci_driver lx6464es_driver = {
1145 .name = KBUILD_MODNAME, 1145 .name = KBUILD_MODNAME,
1146 .id_table = snd_lx6464es_ids, 1146 .id_table = snd_lx6464es_ids,
1147 .probe = snd_lx6464es_probe, 1147 .probe = snd_lx6464es_probe,
1148 .remove = __devexit_p(snd_lx6464es_remove), 1148 .remove = __devexit_p(snd_lx6464es_remove),
1149}; 1149};
1150 1150
1151 1151module_pci_driver(lx6464es_driver);
1152/* module initialization */
1153static int __init mod_init(void)
1154{
1155 return pci_register_driver(&driver);
1156}
1157
1158static void __exit mod_exit(void)
1159{
1160 pci_unregister_driver(&driver);
1161}
1162
1163module_init(mod_init);
1164module_exit(mod_exit);