aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712/ice1712.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/ice1712/ice1712.c
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/ice1712.c')
-rw-r--r--sound/pci/ice1712/ice1712.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c
index 132a86e09d07..5be2e120a14e 100644
--- a/sound/pci/ice1712/ice1712.c
+++ b/sound/pci/ice1712/ice1712.c
@@ -2803,22 +2803,11 @@ static void __devexit snd_ice1712_remove(struct pci_dev *pci)
2803 pci_set_drvdata(pci, NULL); 2803 pci_set_drvdata(pci, NULL);
2804} 2804}
2805 2805
2806static struct pci_driver driver = { 2806static struct pci_driver ice1712_driver = {
2807 .name = KBUILD_MODNAME, 2807 .name = KBUILD_MODNAME,
2808 .id_table = snd_ice1712_ids, 2808 .id_table = snd_ice1712_ids,
2809 .probe = snd_ice1712_probe, 2809 .probe = snd_ice1712_probe,
2810 .remove = __devexit_p(snd_ice1712_remove), 2810 .remove = __devexit_p(snd_ice1712_remove),
2811}; 2811};
2812 2812
2813static int __init alsa_card_ice1712_init(void) 2813module_pci_driver(ice1712_driver);
2814{
2815 return pci_register_driver(&driver);
2816}
2817
2818static void __exit alsa_card_ice1712_exit(void)
2819{
2820 pci_unregister_driver(&driver);
2821}
2822
2823module_init(alsa_card_ice1712_init)
2824module_exit(alsa_card_ice1712_exit)