aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.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/hda/hda_intel.c
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index c19e71a94e1b..7b6a8232f350 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -3134,7 +3134,7 @@ static DEFINE_PCI_DEVICE_TABLE(azx_ids) = {
3134MODULE_DEVICE_TABLE(pci, azx_ids); 3134MODULE_DEVICE_TABLE(pci, azx_ids);
3135 3135
3136/* pci_driver definition */ 3136/* pci_driver definition */
3137static struct pci_driver driver = { 3137static struct pci_driver azx_driver = {
3138 .name = KBUILD_MODNAME, 3138 .name = KBUILD_MODNAME,
3139 .id_table = azx_ids, 3139 .id_table = azx_ids,
3140 .probe = azx_probe, 3140 .probe = azx_probe,
@@ -3145,15 +3145,4 @@ static struct pci_driver driver = {
3145#endif 3145#endif
3146}; 3146};
3147 3147
3148static int __init alsa_card_azx_init(void) 3148module_pci_driver(azx_driver);
3149{
3150 return pci_register_driver(&driver);
3151}
3152
3153static void __exit alsa_card_azx_exit(void)
3154{
3155 pci_unregister_driver(&driver);
3156}
3157
3158module_init(alsa_card_azx_init)
3159module_exit(alsa_card_azx_exit)