diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-04-24 06:25:00 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-24 06:25:00 -0400 |
commit | e9f66d9b9ce03f74a52894cebedf12b67f65dd24 (patch) | |
tree | 6fc07ea37548ac3c9f808ee25c10fcfeb34236ea /sound | |
parent | 68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff) |
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
51 files changed, 98 insertions, 705 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 = { | |||
1062 | .remove = __devexit_p(snd_ad1889_remove), | 1062 | .remove = __devexit_p(snd_ad1889_remove), |
1063 | }; | 1063 | }; |
1064 | 1064 | ||
1065 | static int __init | 1065 | module_pci_driver(ad1889_pci_driver); |
1066 | alsa_ad1889_init(void) | ||
1067 | { | ||
1068 | return pci_register_driver(&ad1889_pci_driver); | ||
1069 | } | ||
1070 | |||
1071 | static void __exit | ||
1072 | alsa_ad1889_fini(void) | ||
1073 | { | ||
1074 | pci_unregister_driver(&ad1889_pci_driver); | ||
1075 | } | ||
1076 | |||
1077 | module_init(alsa_ad1889_init); | ||
1078 | module_exit(alsa_ad1889_fini); | ||
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index bdd6164e9c7e..9dfc27bf6cc6 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -2294,7 +2294,7 @@ static void __devexit snd_ali_remove(struct pci_dev *pci) | |||
2294 | pci_set_drvdata(pci, NULL); | 2294 | pci_set_drvdata(pci, NULL); |
2295 | } | 2295 | } |
2296 | 2296 | ||
2297 | static struct pci_driver driver = { | 2297 | static struct pci_driver ali5451_driver = { |
2298 | .name = KBUILD_MODNAME, | 2298 | .name = KBUILD_MODNAME, |
2299 | .id_table = snd_ali_ids, | 2299 | .id_table = snd_ali_ids, |
2300 | .probe = snd_ali_probe, | 2300 | .probe = snd_ali_probe, |
@@ -2305,15 +2305,4 @@ static struct pci_driver driver = { | |||
2305 | #endif | 2305 | #endif |
2306 | }; | 2306 | }; |
2307 | 2307 | ||
2308 | static int __init alsa_card_ali_init(void) | 2308 | module_pci_driver(ali5451_driver); |
2309 | { | ||
2310 | return pci_register_driver(&driver); | ||
2311 | } | ||
2312 | |||
2313 | static void __exit alsa_card_ali_exit(void) | ||
2314 | { | ||
2315 | pci_unregister_driver(&driver); | ||
2316 | } | ||
2317 | |||
2318 | module_init(alsa_card_ali_init) | ||
2319 | module_exit(alsa_card_ali_exit) | ||
diff --git a/sound/pci/als300.c b/sound/pci/als300.c index 8196e229b2df..59d65388faf5 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c | |||
@@ -852,7 +852,7 @@ static int __devinit snd_als300_probe(struct pci_dev *pci, | |||
852 | return 0; | 852 | return 0; |
853 | } | 853 | } |
854 | 854 | ||
855 | static struct pci_driver driver = { | 855 | static struct pci_driver als300_driver = { |
856 | .name = KBUILD_MODNAME, | 856 | .name = KBUILD_MODNAME, |
857 | .id_table = snd_als300_ids, | 857 | .id_table = snd_als300_ids, |
858 | .probe = snd_als300_probe, | 858 | .probe = snd_als300_probe, |
@@ -863,15 +863,4 @@ static struct pci_driver driver = { | |||
863 | #endif | 863 | #endif |
864 | }; | 864 | }; |
865 | 865 | ||
866 | static int __init alsa_card_als300_init(void) | 866 | module_pci_driver(als300_driver); |
867 | { | ||
868 | return pci_register_driver(&driver); | ||
869 | } | ||
870 | |||
871 | static void __exit alsa_card_als300_exit(void) | ||
872 | { | ||
873 | pci_unregister_driver(&driver); | ||
874 | } | ||
875 | |||
876 | module_init(alsa_card_als300_init) | ||
877 | module_exit(alsa_card_als300_exit) | ||
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index 3269b8011ea9..7d7f2598c748 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -1036,7 +1036,7 @@ static int snd_als4000_resume(struct pci_dev *pci) | |||
1036 | #endif /* CONFIG_PM */ | 1036 | #endif /* CONFIG_PM */ |
1037 | 1037 | ||
1038 | 1038 | ||
1039 | static struct pci_driver driver = { | 1039 | static struct pci_driver als4000_driver = { |
1040 | .name = KBUILD_MODNAME, | 1040 | .name = KBUILD_MODNAME, |
1041 | .id_table = snd_als4000_ids, | 1041 | .id_table = snd_als4000_ids, |
1042 | .probe = snd_card_als4000_probe, | 1042 | .probe = snd_card_als4000_probe, |
@@ -1047,15 +1047,4 @@ static struct pci_driver driver = { | |||
1047 | #endif | 1047 | #endif |
1048 | }; | 1048 | }; |
1049 | 1049 | ||
1050 | static int __init alsa_card_als4000_init(void) | 1050 | module_pci_driver(als4000_driver); |
1051 | { | ||
1052 | return pci_register_driver(&driver); | ||
1053 | } | ||
1054 | |||
1055 | static void __exit alsa_card_als4000_exit(void) | ||
1056 | { | ||
1057 | pci_unregister_driver(&driver); | ||
1058 | } | ||
1059 | |||
1060 | module_init(alsa_card_als4000_init) | ||
1061 | module_exit(alsa_card_als4000_exit) | ||
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index e8de831f98bc..7b5259b6032f 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c | |||
@@ -2963,7 +2963,7 @@ static DEFINE_PCI_DEVICE_TABLE(asihpi_pci_tbl) = { | |||
2963 | }; | 2963 | }; |
2964 | MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl); | 2964 | MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl); |
2965 | 2965 | ||
2966 | static struct pci_driver driver = { | 2966 | static struct pci_driver asihpi_driver = { |
2967 | .name = KBUILD_MODNAME, | 2967 | .name = KBUILD_MODNAME, |
2968 | .id_table = asihpi_pci_tbl, | 2968 | .id_table = asihpi_pci_tbl, |
2969 | .probe = snd_asihpi_probe, | 2969 | .probe = snd_asihpi_probe, |
@@ -2974,19 +2974,4 @@ static struct pci_driver driver = { | |||
2974 | #endif | 2974 | #endif |
2975 | }; | 2975 | }; |
2976 | 2976 | ||
2977 | static int __init snd_asihpi_init(void) | 2977 | module_pci_driver(asihpi_driver); |
2978 | { | ||
2979 | asihpi_init(); | ||
2980 | return pci_register_driver(&driver); | ||
2981 | } | ||
2982 | |||
2983 | static void __exit snd_asihpi_exit(void) | ||
2984 | { | ||
2985 | |||
2986 | pci_unregister_driver(&driver); | ||
2987 | asihpi_exit(); | ||
2988 | } | ||
2989 | |||
2990 | module_init(snd_asihpi_init) | ||
2991 | module_exit(snd_asihpi_exit) | ||
2992 | |||
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 590682f115ef..156a94f8a123 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1700,7 +1700,7 @@ static void __devexit snd_atiixp_remove(struct pci_dev *pci) | |||
1700 | pci_set_drvdata(pci, NULL); | 1700 | pci_set_drvdata(pci, NULL); |
1701 | } | 1701 | } |
1702 | 1702 | ||
1703 | static struct pci_driver driver = { | 1703 | static struct pci_driver atiixp_driver = { |
1704 | .name = KBUILD_MODNAME, | 1704 | .name = KBUILD_MODNAME, |
1705 | .id_table = snd_atiixp_ids, | 1705 | .id_table = snd_atiixp_ids, |
1706 | .probe = snd_atiixp_probe, | 1706 | .probe = snd_atiixp_probe, |
@@ -1711,16 +1711,4 @@ static struct pci_driver driver = { | |||
1711 | #endif | 1711 | #endif |
1712 | }; | 1712 | }; |
1713 | 1713 | ||
1714 | 1714 | module_pci_driver(atiixp_driver); | |
1715 | static int __init alsa_card_atiixp_init(void) | ||
1716 | { | ||
1717 | return pci_register_driver(&driver); | ||
1718 | } | ||
1719 | |||
1720 | static void __exit alsa_card_atiixp_exit(void) | ||
1721 | { | ||
1722 | pci_unregister_driver(&driver); | ||
1723 | } | ||
1724 | |||
1725 | module_init(alsa_card_atiixp_init) | ||
1726 | module_exit(alsa_card_atiixp_exit) | ||
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 524d35f31232..30a4fd96ce73 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -1331,7 +1331,7 @@ static void __devexit snd_atiixp_remove(struct pci_dev *pci) | |||
1331 | pci_set_drvdata(pci, NULL); | 1331 | pci_set_drvdata(pci, NULL); |
1332 | } | 1332 | } |
1333 | 1333 | ||
1334 | static struct pci_driver driver = { | 1334 | static struct pci_driver atiixp_modem_driver = { |
1335 | .name = KBUILD_MODNAME, | 1335 | .name = KBUILD_MODNAME, |
1336 | .id_table = snd_atiixp_ids, | 1336 | .id_table = snd_atiixp_ids, |
1337 | .probe = snd_atiixp_probe, | 1337 | .probe = snd_atiixp_probe, |
@@ -1342,16 +1342,4 @@ static struct pci_driver driver = { | |||
1342 | #endif | 1342 | #endif |
1343 | }; | 1343 | }; |
1344 | 1344 | ||
1345 | 1345 | module_pci_driver(atiixp_modem_driver); | |
1346 | static int __init alsa_card_atiixp_init(void) | ||
1347 | { | ||
1348 | return pci_register_driver(&driver); | ||
1349 | } | ||
1350 | |||
1351 | static void __exit alsa_card_atiixp_exit(void) | ||
1352 | { | ||
1353 | pci_unregister_driver(&driver); | ||
1354 | } | ||
1355 | |||
1356 | module_init(alsa_card_atiixp_init) | ||
1357 | module_exit(alsa_card_atiixp_exit) | ||
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c index f13ad536b2d5..ffc376f9f4e4 100644 --- a/sound/pci/au88x0/au88x0.c +++ b/sound/pci/au88x0/au88x0.c | |||
@@ -375,24 +375,11 @@ static void __devexit snd_vortex_remove(struct pci_dev *pci) | |||
375 | } | 375 | } |
376 | 376 | ||
377 | // pci_driver definition | 377 | // pci_driver definition |
378 | static struct pci_driver driver = { | 378 | static struct pci_driver vortex_driver = { |
379 | .name = KBUILD_MODNAME, | 379 | .name = KBUILD_MODNAME, |
380 | .id_table = snd_vortex_ids, | 380 | .id_table = snd_vortex_ids, |
381 | .probe = snd_vortex_probe, | 381 | .probe = snd_vortex_probe, |
382 | .remove = __devexit_p(snd_vortex_remove), | 382 | .remove = __devexit_p(snd_vortex_remove), |
383 | }; | 383 | }; |
384 | 384 | ||
385 | // initialization of the module | 385 | module_pci_driver(vortex_driver); |
386 | static int __init alsa_card_vortex_init(void) | ||
387 | { | ||
388 | return pci_register_driver(&driver); | ||
389 | } | ||
390 | |||
391 | // clean up the module | ||
392 | static void __exit alsa_card_vortex_exit(void) | ||
393 | { | ||
394 | pci_unregister_driver(&driver); | ||
395 | } | ||
396 | |||
397 | module_init(alsa_card_vortex_init) | ||
398 | module_exit(alsa_card_vortex_exit) | ||
diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c index 1c5231931462..0f804741825f 100644 --- a/sound/pci/aw2/aw2-alsa.c +++ b/sound/pci/aw2/aw2-alsa.c | |||
@@ -112,8 +112,6 @@ struct aw2 { | |||
112 | /********************************* | 112 | /********************************* |
113 | * FUNCTION DECLARATIONS | 113 | * FUNCTION DECLARATIONS |
114 | ********************************/ | 114 | ********************************/ |
115 | static int __init alsa_card_aw2_init(void); | ||
116 | static void __exit alsa_card_aw2_exit(void); | ||
117 | static int snd_aw2_dev_free(struct snd_device *device); | 115 | static int snd_aw2_dev_free(struct snd_device *device); |
118 | static int __devinit snd_aw2_create(struct snd_card *card, | 116 | static int __devinit snd_aw2_create(struct snd_card *card, |
119 | struct pci_dev *pci, struct aw2 **rchip); | 117 | struct pci_dev *pci, struct aw2 **rchip); |
@@ -171,13 +169,15 @@ static DEFINE_PCI_DEVICE_TABLE(snd_aw2_ids) = { | |||
171 | MODULE_DEVICE_TABLE(pci, snd_aw2_ids); | 169 | MODULE_DEVICE_TABLE(pci, snd_aw2_ids); |
172 | 170 | ||
173 | /* pci_driver definition */ | 171 | /* pci_driver definition */ |
174 | static struct pci_driver driver = { | 172 | static struct pci_driver aw2_driver = { |
175 | .name = KBUILD_MODNAME, | 173 | .name = KBUILD_MODNAME, |
176 | .id_table = snd_aw2_ids, | 174 | .id_table = snd_aw2_ids, |
177 | .probe = snd_aw2_probe, | 175 | .probe = snd_aw2_probe, |
178 | .remove = __devexit_p(snd_aw2_remove), | 176 | .remove = __devexit_p(snd_aw2_remove), |
179 | }; | 177 | }; |
180 | 178 | ||
179 | module_pci_driver(aw2_driver); | ||
180 | |||
181 | /* operators for playback PCM alsa interface */ | 181 | /* operators for playback PCM alsa interface */ |
182 | static struct snd_pcm_ops snd_aw2_playback_ops = { | 182 | static struct snd_pcm_ops snd_aw2_playback_ops = { |
183 | .open = snd_aw2_pcm_playback_open, | 183 | .open = snd_aw2_pcm_playback_open, |
@@ -217,23 +217,6 @@ static struct snd_kcontrol_new aw2_control __devinitdata = { | |||
217 | * FUNCTION IMPLEMENTATIONS | 217 | * FUNCTION IMPLEMENTATIONS |
218 | ********************************/ | 218 | ********************************/ |
219 | 219 | ||
220 | /* initialization of the module */ | ||
221 | static int __init alsa_card_aw2_init(void) | ||
222 | { | ||
223 | snd_printdd(KERN_DEBUG "aw2: Load aw2 module\n"); | ||
224 | return pci_register_driver(&driver); | ||
225 | } | ||
226 | |||
227 | /* clean up the module */ | ||
228 | static void __exit alsa_card_aw2_exit(void) | ||
229 | { | ||
230 | snd_printdd(KERN_DEBUG "aw2: Unload aw2 module\n"); | ||
231 | pci_unregister_driver(&driver); | ||
232 | } | ||
233 | |||
234 | module_init(alsa_card_aw2_init); | ||
235 | module_exit(alsa_card_aw2_exit); | ||
236 | |||
237 | /* component-destructor */ | 220 | /* component-destructor */ |
238 | static int snd_aw2_dev_free(struct snd_device *device) | 221 | static int snd_aw2_dev_free(struct snd_device *device) |
239 | { | 222 | { |
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 | ||
2865 | static struct pci_driver driver = { | 2865 | static 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 | ||
2876 | static int __init | 2876 | module_pci_driver(azf3328_driver); |
2877 | alsa_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 | |||
2886 | static void __exit | ||
2887 | alsa_card_azf3328_exit(void) | ||
2888 | { | ||
2889 | snd_azf3328_dbgcallenter(); | ||
2890 | pci_unregister_driver(&driver); | ||
2891 | snd_azf3328_dbgcallleave(); | ||
2892 | } | ||
2893 | |||
2894 | module_init(alsa_card_azf3328_init) | ||
2895 | module_exit(alsa_card_azf3328_exit) | ||
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index 62d6163fc9d9..b6a95eeca095 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -836,8 +836,6 @@ static struct { | |||
836 | {0x7063, 0x2000}, /* pcHDTV HD-2000 TV */ | 836 | {0x7063, 0x2000}, /* pcHDTV HD-2000 TV */ |
837 | }; | 837 | }; |
838 | 838 | ||
839 | static struct pci_driver driver; | ||
840 | |||
841 | /* return the id of the card, or a negative value if it's blacklisted */ | 839 | /* return the id of the card, or a negative value if it's blacklisted */ |
842 | static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) | 840 | static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) |
843 | { | 841 | { |
@@ -964,24 +962,11 @@ static DEFINE_PCI_DEVICE_TABLE(snd_bt87x_default_ids) = { | |||
964 | { } | 962 | { } |
965 | }; | 963 | }; |
966 | 964 | ||
967 | static struct pci_driver driver = { | 965 | static struct pci_driver bt87x_driver = { |
968 | .name = KBUILD_MODNAME, | 966 | .name = KBUILD_MODNAME, |
969 | .id_table = snd_bt87x_ids, | 967 | .id_table = snd_bt87x_ids, |
970 | .probe = snd_bt87x_probe, | 968 | .probe = snd_bt87x_probe, |
971 | .remove = __devexit_p(snd_bt87x_remove), | 969 | .remove = __devexit_p(snd_bt87x_remove), |
972 | }; | 970 | }; |
973 | 971 | ||
974 | static int __init alsa_card_bt87x_init(void) | 972 | module_pci_driver(bt87x_driver); |
975 | { | ||
976 | if (load_all) | ||
977 | driver.id_table = snd_bt87x_default_ids; | ||
978 | return pci_register_driver(&driver); | ||
979 | } | ||
980 | |||
981 | static void __exit alsa_card_bt87x_exit(void) | ||
982 | { | ||
983 | pci_unregister_driver(&driver); | ||
984 | } | ||
985 | |||
986 | module_init(alsa_card_bt87x_init) | ||
987 | module_exit(alsa_card_bt87x_exit) | ||
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 08d6ebfe5a61..e76d68a7081f 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1932,7 +1932,7 @@ static DEFINE_PCI_DEVICE_TABLE(snd_ca0106_ids) = { | |||
1932 | MODULE_DEVICE_TABLE(pci, snd_ca0106_ids); | 1932 | MODULE_DEVICE_TABLE(pci, snd_ca0106_ids); |
1933 | 1933 | ||
1934 | // pci_driver definition | 1934 | // pci_driver definition |
1935 | static struct pci_driver driver = { | 1935 | static struct pci_driver ca0106_driver = { |
1936 | .name = KBUILD_MODNAME, | 1936 | .name = KBUILD_MODNAME, |
1937 | .id_table = snd_ca0106_ids, | 1937 | .id_table = snd_ca0106_ids, |
1938 | .probe = snd_ca0106_probe, | 1938 | .probe = snd_ca0106_probe, |
@@ -1943,17 +1943,4 @@ static struct pci_driver driver = { | |||
1943 | #endif | 1943 | #endif |
1944 | }; | 1944 | }; |
1945 | 1945 | ||
1946 | // initialization of the module | 1946 | module_pci_driver(ca0106_driver); |
1947 | static int __init alsa_card_ca0106_init(void) | ||
1948 | { | ||
1949 | return pci_register_driver(&driver); | ||
1950 | } | ||
1951 | |||
1952 | // clean up the module | ||
1953 | static void __exit alsa_card_ca0106_exit(void) | ||
1954 | { | ||
1955 | pci_unregister_driver(&driver); | ||
1956 | } | ||
1957 | |||
1958 | module_init(alsa_card_ca0106_init) | ||
1959 | module_exit(alsa_card_ca0106_exit) | ||
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 19b06269adc2..3815bd4c6779 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -3398,7 +3398,7 @@ static int snd_cmipci_resume(struct pci_dev *pci) | |||
3398 | } | 3398 | } |
3399 | #endif /* CONFIG_PM */ | 3399 | #endif /* CONFIG_PM */ |
3400 | 3400 | ||
3401 | static struct pci_driver driver = { | 3401 | static struct pci_driver cmipci_driver = { |
3402 | .name = KBUILD_MODNAME, | 3402 | .name = KBUILD_MODNAME, |
3403 | .id_table = snd_cmipci_ids, | 3403 | .id_table = snd_cmipci_ids, |
3404 | .probe = snd_cmipci_probe, | 3404 | .probe = snd_cmipci_probe, |
@@ -3409,15 +3409,4 @@ static struct pci_driver driver = { | |||
3409 | #endif | 3409 | #endif |
3410 | }; | 3410 | }; |
3411 | 3411 | ||
3412 | static int __init alsa_card_cmipci_init(void) | 3412 | module_pci_driver(cmipci_driver); |
3413 | { | ||
3414 | return pci_register_driver(&driver); | ||
3415 | } | ||
3416 | |||
3417 | static void __exit alsa_card_cmipci_exit(void) | ||
3418 | { | ||
3419 | pci_unregister_driver(&driver); | ||
3420 | } | ||
3421 | |||
3422 | module_init(alsa_card_cmipci_init) | ||
3423 | module_exit(alsa_card_cmipci_exit) | ||
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index a9f368f60df6..33506ee569bd 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c | |||
@@ -2084,7 +2084,7 @@ static int cs4281_resume(struct pci_dev *pci) | |||
2084 | } | 2084 | } |
2085 | #endif /* CONFIG_PM */ | 2085 | #endif /* CONFIG_PM */ |
2086 | 2086 | ||
2087 | static struct pci_driver driver = { | 2087 | static struct pci_driver cs4281_driver = { |
2088 | .name = KBUILD_MODNAME, | 2088 | .name = KBUILD_MODNAME, |
2089 | .id_table = snd_cs4281_ids, | 2089 | .id_table = snd_cs4281_ids, |
2090 | .probe = snd_cs4281_probe, | 2090 | .probe = snd_cs4281_probe, |
@@ -2095,15 +2095,4 @@ static struct pci_driver driver = { | |||
2095 | #endif | 2095 | #endif |
2096 | }; | 2096 | }; |
2097 | 2097 | ||
2098 | static int __init alsa_card_cs4281_init(void) | 2098 | module_pci_driver(cs4281_driver); |
2099 | { | ||
2100 | return pci_register_driver(&driver); | ||
2101 | } | ||
2102 | |||
2103 | static void __exit alsa_card_cs4281_exit(void) | ||
2104 | { | ||
2105 | pci_unregister_driver(&driver); | ||
2106 | } | ||
2107 | |||
2108 | module_init(alsa_card_cs4281_init) | ||
2109 | module_exit(alsa_card_cs4281_exit) | ||
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index 819d79d0586d..6cc7404e0e8f 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -161,7 +161,7 @@ static void __devexit snd_card_cs46xx_remove(struct pci_dev *pci) | |||
161 | pci_set_drvdata(pci, NULL); | 161 | pci_set_drvdata(pci, NULL); |
162 | } | 162 | } |
163 | 163 | ||
164 | static struct pci_driver driver = { | 164 | static struct pci_driver cs46xx_driver = { |
165 | .name = KBUILD_MODNAME, | 165 | .name = KBUILD_MODNAME, |
166 | .id_table = snd_cs46xx_ids, | 166 | .id_table = snd_cs46xx_ids, |
167 | .probe = snd_card_cs46xx_probe, | 167 | .probe = snd_card_cs46xx_probe, |
@@ -172,15 +172,4 @@ static struct pci_driver driver = { | |||
172 | #endif | 172 | #endif |
173 | }; | 173 | }; |
174 | 174 | ||
175 | static int __init alsa_card_cs46xx_init(void) | 175 | module_pci_driver(cs46xx_driver); |
176 | { | ||
177 | return pci_register_driver(&driver); | ||
178 | } | ||
179 | |||
180 | static void __exit alsa_card_cs46xx_exit(void) | ||
181 | { | ||
182 | pci_unregister_driver(&driver); | ||
183 | } | ||
184 | |||
185 | module_init(alsa_card_cs46xx_init) | ||
186 | module_exit(alsa_card_cs46xx_exit) | ||
diff --git a/sound/pci/cs5530.c b/sound/pci/cs5530.c index c47cabff2bfa..f1e4229993af 100644 --- a/sound/pci/cs5530.c +++ b/sound/pci/cs5530.c | |||
@@ -291,23 +291,11 @@ static int __devinit snd_cs5530_probe(struct pci_dev *pci, | |||
291 | return 0; | 291 | return 0; |
292 | } | 292 | } |
293 | 293 | ||
294 | static struct pci_driver driver = { | 294 | static struct pci_driver cs5530_driver = { |
295 | .name = KBUILD_MODNAME, | 295 | .name = KBUILD_MODNAME, |
296 | .id_table = snd_cs5530_ids, | 296 | .id_table = snd_cs5530_ids, |
297 | .probe = snd_cs5530_probe, | 297 | .probe = snd_cs5530_probe, |
298 | .remove = __devexit_p(snd_cs5530_remove), | 298 | .remove = __devexit_p(snd_cs5530_remove), |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static int __init alsa_card_cs5530_init(void) | 301 | module_pci_driver(cs5530_driver); |
302 | { | ||
303 | return pci_register_driver(&driver); | ||
304 | } | ||
305 | |||
306 | static void __exit alsa_card_cs5530_exit(void) | ||
307 | { | ||
308 | pci_unregister_driver(&driver); | ||
309 | } | ||
310 | |||
311 | module_init(alsa_card_cs5530_init) | ||
312 | module_exit(alsa_card_cs5530_exit) | ||
313 | |||
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index a2fb2173e980..2c9697cf0a1a 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -394,7 +394,7 @@ static void __devexit snd_cs5535audio_remove(struct pci_dev *pci) | |||
394 | pci_set_drvdata(pci, NULL); | 394 | pci_set_drvdata(pci, NULL); |
395 | } | 395 | } |
396 | 396 | ||
397 | static struct pci_driver driver = { | 397 | static struct pci_driver cs5535audio_driver = { |
398 | .name = KBUILD_MODNAME, | 398 | .name = KBUILD_MODNAME, |
399 | .id_table = snd_cs5535audio_ids, | 399 | .id_table = snd_cs5535audio_ids, |
400 | .probe = snd_cs5535audio_probe, | 400 | .probe = snd_cs5535audio_probe, |
@@ -405,18 +405,7 @@ static struct pci_driver driver = { | |||
405 | #endif | 405 | #endif |
406 | }; | 406 | }; |
407 | 407 | ||
408 | static int __init alsa_card_cs5535audio_init(void) | 408 | module_pci_driver(cs5535audio_driver); |
409 | { | ||
410 | return pci_register_driver(&driver); | ||
411 | } | ||
412 | |||
413 | static void __exit alsa_card_cs5535audio_exit(void) | ||
414 | { | ||
415 | pci_unregister_driver(&driver); | ||
416 | } | ||
417 | |||
418 | module_init(alsa_card_cs5535audio_init) | ||
419 | module_exit(alsa_card_cs5535audio_exit) | ||
420 | 409 | ||
421 | MODULE_AUTHOR("Jaya Kumar"); | 410 | MODULE_AUTHOR("Jaya Kumar"); |
422 | MODULE_LICENSE("GPL"); | 411 | MODULE_LICENSE("GPL"); |
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index 15d95d2bacee..75aa2c338410 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -154,15 +154,4 @@ static struct pci_driver ct_driver = { | |||
154 | #endif | 154 | #endif |
155 | }; | 155 | }; |
156 | 156 | ||
157 | static int __init ct_card_init(void) | 157 | module_pci_driver(ct_driver); |
158 | { | ||
159 | return pci_register_driver(&ct_driver); | ||
160 | } | ||
161 | |||
162 | static void __exit ct_card_exit(void) | ||
163 | { | ||
164 | pci_unregister_driver(&ct_driver); | ||
165 | } | ||
166 | |||
167 | module_init(ct_card_init) | ||
168 | module_exit(ct_card_exit) | ||
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index 595c11f904bb..0f8eda1dafdb 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
@@ -2328,7 +2328,7 @@ static void __devexit snd_echo_remove(struct pci_dev *pci) | |||
2328 | ******************************************************************************/ | 2328 | ******************************************************************************/ |
2329 | 2329 | ||
2330 | /* pci_driver definition */ | 2330 | /* pci_driver definition */ |
2331 | static struct pci_driver driver = { | 2331 | static struct pci_driver echo_driver = { |
2332 | .name = KBUILD_MODNAME, | 2332 | .name = KBUILD_MODNAME, |
2333 | .id_table = snd_echo_ids, | 2333 | .id_table = snd_echo_ids, |
2334 | .probe = snd_echo_probe, | 2334 | .probe = snd_echo_probe, |
@@ -2339,22 +2339,4 @@ static struct pci_driver driver = { | |||
2339 | #endif /* CONFIG_PM */ | 2339 | #endif /* CONFIG_PM */ |
2340 | }; | 2340 | }; |
2341 | 2341 | ||
2342 | 2342 | module_pci_driver(echo_driver); | |
2343 | |||
2344 | /* initialization of the module */ | ||
2345 | static int __init alsa_card_echo_init(void) | ||
2346 | { | ||
2347 | return pci_register_driver(&driver); | ||
2348 | } | ||
2349 | |||
2350 | |||
2351 | |||
2352 | /* clean up the module */ | ||
2353 | static void __exit alsa_card_echo_exit(void) | ||
2354 | { | ||
2355 | pci_unregister_driver(&driver); | ||
2356 | } | ||
2357 | |||
2358 | |||
2359 | module_init(alsa_card_echo_init) | ||
2360 | module_exit(alsa_card_echo_exit) | ||
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c index 790c65d980c8..7fdbbe4d9965 100644 --- a/sound/pci/emu10k1/emu10k1.c +++ b/sound/pci/emu10k1/emu10k1.c | |||
@@ -263,7 +263,7 @@ static int snd_emu10k1_resume(struct pci_dev *pci) | |||
263 | } | 263 | } |
264 | #endif | 264 | #endif |
265 | 265 | ||
266 | static struct pci_driver driver = { | 266 | static struct pci_driver emu10k1_driver = { |
267 | .name = KBUILD_MODNAME, | 267 | .name = KBUILD_MODNAME, |
268 | .id_table = snd_emu10k1_ids, | 268 | .id_table = snd_emu10k1_ids, |
269 | .probe = snd_card_emu10k1_probe, | 269 | .probe = snd_card_emu10k1_probe, |
@@ -274,15 +274,4 @@ static struct pci_driver driver = { | |||
274 | #endif | 274 | #endif |
275 | }; | 275 | }; |
276 | 276 | ||
277 | static int __init alsa_card_emu10k1_init(void) | 277 | module_pci_driver(emu10k1_driver); |
278 | { | ||
279 | return pci_register_driver(&driver); | ||
280 | } | ||
281 | |||
282 | static void __exit alsa_card_emu10k1_exit(void) | ||
283 | { | ||
284 | pci_unregister_driver(&driver); | ||
285 | } | ||
286 | |||
287 | module_init(alsa_card_emu10k1_init) | ||
288 | module_exit(alsa_card_emu10k1_exit) | ||
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 47a651cb6e84..5c8978b2c4d9 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -1612,24 +1612,11 @@ static DEFINE_PCI_DEVICE_TABLE(snd_emu10k1x_ids) = { | |||
1612 | MODULE_DEVICE_TABLE(pci, snd_emu10k1x_ids); | 1612 | MODULE_DEVICE_TABLE(pci, snd_emu10k1x_ids); |
1613 | 1613 | ||
1614 | // pci_driver definition | 1614 | // pci_driver definition |
1615 | static struct pci_driver driver = { | 1615 | static struct pci_driver emu10k1x_driver = { |
1616 | .name = KBUILD_MODNAME, | 1616 | .name = KBUILD_MODNAME, |
1617 | .id_table = snd_emu10k1x_ids, | 1617 | .id_table = snd_emu10k1x_ids, |
1618 | .probe = snd_emu10k1x_probe, | 1618 | .probe = snd_emu10k1x_probe, |
1619 | .remove = __devexit_p(snd_emu10k1x_remove), | 1619 | .remove = __devexit_p(snd_emu10k1x_remove), |
1620 | }; | 1620 | }; |
1621 | 1621 | ||
1622 | // initialization of the module | 1622 | module_pci_driver(emu10k1x_driver); |
1623 | static int __init alsa_card_emu10k1x_init(void) | ||
1624 | { | ||
1625 | return pci_register_driver(&driver); | ||
1626 | } | ||
1627 | |||
1628 | // clean up the module | ||
1629 | static void __exit alsa_card_emu10k1x_exit(void) | ||
1630 | { | ||
1631 | pci_unregister_driver(&driver); | ||
1632 | } | ||
1633 | |||
1634 | module_init(alsa_card_emu10k1x_init) | ||
1635 | module_exit(alsa_card_emu10k1x_exit) | ||
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index 47a245e84190..3821c81d1c99 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -2488,7 +2488,7 @@ static void __devexit snd_audiopci_remove(struct pci_dev *pci) | |||
2488 | pci_set_drvdata(pci, NULL); | 2488 | pci_set_drvdata(pci, NULL); |
2489 | } | 2489 | } |
2490 | 2490 | ||
2491 | static struct pci_driver driver = { | 2491 | static struct pci_driver ens137x_driver = { |
2492 | .name = KBUILD_MODNAME, | 2492 | .name = KBUILD_MODNAME, |
2493 | .id_table = snd_audiopci_ids, | 2493 | .id_table = snd_audiopci_ids, |
2494 | .probe = snd_audiopci_probe, | 2494 | .probe = snd_audiopci_probe, |
@@ -2499,15 +2499,4 @@ static struct pci_driver driver = { | |||
2499 | #endif | 2499 | #endif |
2500 | }; | 2500 | }; |
2501 | 2501 | ||
2502 | static int __init alsa_card_ens137x_init(void) | 2502 | module_pci_driver(ens137x_driver); |
2503 | { | ||
2504 | return pci_register_driver(&driver); | ||
2505 | } | ||
2506 | |||
2507 | static void __exit alsa_card_ens137x_exit(void) | ||
2508 | { | ||
2509 | pci_unregister_driver(&driver); | ||
2510 | } | ||
2511 | |||
2512 | module_init(alsa_card_ens137x_init) | ||
2513 | module_exit(alsa_card_ens137x_exit) | ||
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 53eb76b41108..82c8d8c5c52a 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -1882,7 +1882,7 @@ static void __devexit snd_es1938_remove(struct pci_dev *pci) | |||
1882 | pci_set_drvdata(pci, NULL); | 1882 | pci_set_drvdata(pci, NULL); |
1883 | } | 1883 | } |
1884 | 1884 | ||
1885 | static struct pci_driver driver = { | 1885 | static struct pci_driver es1938_driver = { |
1886 | .name = KBUILD_MODNAME, | 1886 | .name = KBUILD_MODNAME, |
1887 | .id_table = snd_es1938_ids, | 1887 | .id_table = snd_es1938_ids, |
1888 | .probe = snd_es1938_probe, | 1888 | .probe = snd_es1938_probe, |
@@ -1893,15 +1893,4 @@ static struct pci_driver driver = { | |||
1893 | #endif | 1893 | #endif |
1894 | }; | 1894 | }; |
1895 | 1895 | ||
1896 | static int __init alsa_card_es1938_init(void) | 1896 | module_pci_driver(es1938_driver); |
1897 | { | ||
1898 | return pci_register_driver(&driver); | ||
1899 | } | ||
1900 | |||
1901 | static void __exit alsa_card_es1938_exit(void) | ||
1902 | { | ||
1903 | pci_unregister_driver(&driver); | ||
1904 | } | ||
1905 | |||
1906 | module_init(alsa_card_es1938_init) | ||
1907 | module_exit(alsa_card_es1938_exit) | ||
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index a8faae1c85e4..67f47d891959 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -2898,7 +2898,7 @@ static void __devexit snd_es1968_remove(struct pci_dev *pci) | |||
2898 | pci_set_drvdata(pci, NULL); | 2898 | pci_set_drvdata(pci, NULL); |
2899 | } | 2899 | } |
2900 | 2900 | ||
2901 | static struct pci_driver driver = { | 2901 | static struct pci_driver es1968_driver = { |
2902 | .name = KBUILD_MODNAME, | 2902 | .name = KBUILD_MODNAME, |
2903 | .id_table = snd_es1968_ids, | 2903 | .id_table = snd_es1968_ids, |
2904 | .probe = snd_es1968_probe, | 2904 | .probe = snd_es1968_probe, |
@@ -2909,15 +2909,4 @@ static struct pci_driver driver = { | |||
2909 | #endif | 2909 | #endif |
2910 | }; | 2910 | }; |
2911 | 2911 | ||
2912 | static int __init alsa_card_es1968_init(void) | 2912 | module_pci_driver(es1968_driver); |
2913 | { | ||
2914 | return pci_register_driver(&driver); | ||
2915 | } | ||
2916 | |||
2917 | static void __exit alsa_card_es1968_exit(void) | ||
2918 | { | ||
2919 | pci_unregister_driver(&driver); | ||
2920 | } | ||
2921 | |||
2922 | module_init(alsa_card_es1968_init) | ||
2923 | module_exit(alsa_card_es1968_exit) | ||
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index a416ea8af3e9..f69662322750 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -1416,7 +1416,7 @@ static int snd_fm801_resume(struct pci_dev *pci) | |||
1416 | } | 1416 | } |
1417 | #endif | 1417 | #endif |
1418 | 1418 | ||
1419 | static struct pci_driver driver = { | 1419 | static struct pci_driver fm801_driver = { |
1420 | .name = KBUILD_MODNAME, | 1420 | .name = KBUILD_MODNAME, |
1421 | .id_table = snd_fm801_ids, | 1421 | .id_table = snd_fm801_ids, |
1422 | .probe = snd_card_fm801_probe, | 1422 | .probe = snd_card_fm801_probe, |
@@ -1427,15 +1427,4 @@ static struct pci_driver driver = { | |||
1427 | #endif | 1427 | #endif |
1428 | }; | 1428 | }; |
1429 | 1429 | ||
1430 | static int __init alsa_card_fm801_init(void) | 1430 | module_pci_driver(fm801_driver); |
1431 | { | ||
1432 | return pci_register_driver(&driver); | ||
1433 | } | ||
1434 | |||
1435 | static void __exit alsa_card_fm801_exit(void) | ||
1436 | { | ||
1437 | pci_unregister_driver(&driver); | ||
1438 | } | ||
1439 | |||
1440 | module_init(alsa_card_fm801_init) | ||
1441 | module_exit(alsa_card_fm801_exit) | ||
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) = { | |||
3134 | MODULE_DEVICE_TABLE(pci, azx_ids); | 3134 | MODULE_DEVICE_TABLE(pci, azx_ids); |
3135 | 3135 | ||
3136 | /* pci_driver definition */ | 3136 | /* pci_driver definition */ |
3137 | static struct pci_driver driver = { | 3137 | static 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 | ||
3148 | static int __init alsa_card_azx_init(void) | 3148 | module_pci_driver(azx_driver); |
3149 | { | ||
3150 | return pci_register_driver(&driver); | ||
3151 | } | ||
3152 | |||
3153 | static void __exit alsa_card_azx_exit(void) | ||
3154 | { | ||
3155 | pci_unregister_driver(&driver); | ||
3156 | } | ||
3157 | |||
3158 | module_init(alsa_card_azx_init) | ||
3159 | module_exit(alsa_card_azx_exit) | ||
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 | ||
2806 | static struct pci_driver driver = { | 2806 | static 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 | ||
2813 | static int __init alsa_card_ice1712_init(void) | 2813 | module_pci_driver(ice1712_driver); |
2814 | { | ||
2815 | return pci_register_driver(&driver); | ||
2816 | } | ||
2817 | |||
2818 | static void __exit alsa_card_ice1712_exit(void) | ||
2819 | { | ||
2820 | pci_unregister_driver(&driver); | ||
2821 | } | ||
2822 | |||
2823 | module_init(alsa_card_ice1712_init) | ||
2824 | module_exit(alsa_card_ice1712_exit) | ||
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index 812d10e43ae0..a01a00d1cf4d 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c | |||
@@ -2873,7 +2873,7 @@ static int snd_vt1724_resume(struct pci_dev *pci) | |||
2873 | } | 2873 | } |
2874 | #endif | 2874 | #endif |
2875 | 2875 | ||
2876 | static struct pci_driver driver = { | 2876 | static struct pci_driver vt1724_driver = { |
2877 | .name = KBUILD_MODNAME, | 2877 | .name = KBUILD_MODNAME, |
2878 | .id_table = snd_vt1724_ids, | 2878 | .id_table = snd_vt1724_ids, |
2879 | .probe = snd_vt1724_probe, | 2879 | .probe = snd_vt1724_probe, |
@@ -2884,15 +2884,4 @@ static struct pci_driver driver = { | |||
2884 | #endif | 2884 | #endif |
2885 | }; | 2885 | }; |
2886 | 2886 | ||
2887 | static int __init alsa_card_ice1724_init(void) | 2887 | module_pci_driver(vt1724_driver); |
2888 | { | ||
2889 | return pci_register_driver(&driver); | ||
2890 | } | ||
2891 | |||
2892 | static void __exit alsa_card_ice1724_exit(void) | ||
2893 | { | ||
2894 | pci_unregister_driver(&driver); | ||
2895 | } | ||
2896 | |||
2897 | module_init(alsa_card_ice1724_init) | ||
2898 | module_exit(alsa_card_ice1724_exit) | ||
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index e0a4263baa20..f4e2dd4da8cf 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -3338,7 +3338,7 @@ static void __devexit snd_intel8x0_remove(struct pci_dev *pci) | |||
3338 | pci_set_drvdata(pci, NULL); | 3338 | pci_set_drvdata(pci, NULL); |
3339 | } | 3339 | } |
3340 | 3340 | ||
3341 | static struct pci_driver driver = { | 3341 | static struct pci_driver intel8x0_driver = { |
3342 | .name = KBUILD_MODNAME, | 3342 | .name = KBUILD_MODNAME, |
3343 | .id_table = snd_intel8x0_ids, | 3343 | .id_table = snd_intel8x0_ids, |
3344 | .probe = snd_intel8x0_probe, | 3344 | .probe = snd_intel8x0_probe, |
@@ -3349,16 +3349,4 @@ static struct pci_driver driver = { | |||
3349 | #endif | 3349 | #endif |
3350 | }; | 3350 | }; |
3351 | 3351 | ||
3352 | 3352 | module_pci_driver(intel8x0_driver); | |
3353 | static int __init alsa_card_intel8x0_init(void) | ||
3354 | { | ||
3355 | return pci_register_driver(&driver); | ||
3356 | } | ||
3357 | |||
3358 | static void __exit alsa_card_intel8x0_exit(void) | ||
3359 | { | ||
3360 | pci_unregister_driver(&driver); | ||
3361 | } | ||
3362 | |||
3363 | module_init(alsa_card_intel8x0_init) | ||
3364 | module_exit(alsa_card_intel8x0_exit) | ||
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index d689913a61be..fc27a6a69e77 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
@@ -1324,7 +1324,7 @@ static void __devexit snd_intel8x0m_remove(struct pci_dev *pci) | |||
1324 | pci_set_drvdata(pci, NULL); | 1324 | pci_set_drvdata(pci, NULL); |
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | static struct pci_driver driver = { | 1327 | static struct pci_driver intel8x0m_driver = { |
1328 | .name = KBUILD_MODNAME, | 1328 | .name = KBUILD_MODNAME, |
1329 | .id_table = snd_intel8x0m_ids, | 1329 | .id_table = snd_intel8x0m_ids, |
1330 | .probe = snd_intel8x0m_probe, | 1330 | .probe = snd_intel8x0m_probe, |
@@ -1335,16 +1335,4 @@ static struct pci_driver driver = { | |||
1335 | #endif | 1335 | #endif |
1336 | }; | 1336 | }; |
1337 | 1337 | ||
1338 | 1338 | module_pci_driver(intel8x0m_driver); | |
1339 | static int __init alsa_card_intel8x0m_init(void) | ||
1340 | { | ||
1341 | return pci_register_driver(&driver); | ||
1342 | } | ||
1343 | |||
1344 | static void __exit alsa_card_intel8x0m_exit(void) | ||
1345 | { | ||
1346 | pci_unregister_driver(&driver); | ||
1347 | } | ||
1348 | |||
1349 | module_init(alsa_card_intel8x0m_init) | ||
1350 | module_exit(alsa_card_intel8x0m_exit) | ||
diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index 8fea45ab5882..e69ce5f9c31e 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c | |||
@@ -2476,22 +2476,11 @@ static void __devexit snd_korg1212_remove(struct pci_dev *pci) | |||
2476 | pci_set_drvdata(pci, NULL); | 2476 | pci_set_drvdata(pci, NULL); |
2477 | } | 2477 | } |
2478 | 2478 | ||
2479 | static struct pci_driver driver = { | 2479 | static struct pci_driver korg1212_driver = { |
2480 | .name = KBUILD_MODNAME, | 2480 | .name = KBUILD_MODNAME, |
2481 | .id_table = snd_korg1212_ids, | 2481 | .id_table = snd_korg1212_ids, |
2482 | .probe = snd_korg1212_probe, | 2482 | .probe = snd_korg1212_probe, |
2483 | .remove = __devexit_p(snd_korg1212_remove), | 2483 | .remove = __devexit_p(snd_korg1212_remove), |
2484 | }; | 2484 | }; |
2485 | 2485 | ||
2486 | static int __init alsa_card_korg1212_init(void) | 2486 | module_pci_driver(korg1212_driver); |
2487 | { | ||
2488 | return pci_register_driver(&driver); | ||
2489 | } | ||
2490 | |||
2491 | static void __exit alsa_card_korg1212_exit(void) | ||
2492 | { | ||
2493 | pci_unregister_driver(&driver); | ||
2494 | } | ||
2495 | |||
2496 | module_init(alsa_card_korg1212_init) | ||
2497 | module_exit(alsa_card_korg1212_exit) | ||
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c index 375982736858..ac15166bee68 100644 --- a/sound/pci/lola/lola.c +++ b/sound/pci/lola/lola.c | |||
@@ -770,22 +770,11 @@ static DEFINE_PCI_DEVICE_TABLE(lola_ids) = { | |||
770 | MODULE_DEVICE_TABLE(pci, lola_ids); | 770 | MODULE_DEVICE_TABLE(pci, lola_ids); |
771 | 771 | ||
772 | /* pci_driver definition */ | 772 | /* pci_driver definition */ |
773 | static struct pci_driver driver = { | 773 | static struct pci_driver lola_driver = { |
774 | .name = KBUILD_MODNAME, | 774 | .name = KBUILD_MODNAME, |
775 | .id_table = lola_ids, | 775 | .id_table = lola_ids, |
776 | .probe = lola_probe, | 776 | .probe = lola_probe, |
777 | .remove = __devexit_p(lola_remove), | 777 | .remove = __devexit_p(lola_remove), |
778 | }; | 778 | }; |
779 | 779 | ||
780 | static int __init alsa_card_lola_init(void) | 780 | module_pci_driver(lola_driver); |
781 | { | ||
782 | return pci_register_driver(&driver); | ||
783 | } | ||
784 | |||
785 | static void __exit alsa_card_lola_exit(void) | ||
786 | { | ||
787 | pci_unregister_driver(&driver); | ||
788 | } | ||
789 | |||
790 | module_init(alsa_card_lola_init) | ||
791 | module_exit(alsa_card_lola_exit) | ||
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 | ||
1144 | static struct pci_driver driver = { | 1144 | static 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 | 1151 | module_pci_driver(lx6464es_driver); | |
1152 | /* module initialization */ | ||
1153 | static int __init mod_init(void) | ||
1154 | { | ||
1155 | return pci_register_driver(&driver); | ||
1156 | } | ||
1157 | |||
1158 | static void __exit mod_exit(void) | ||
1159 | { | ||
1160 | pci_unregister_driver(&driver); | ||
1161 | } | ||
1162 | |||
1163 | module_init(mod_init); | ||
1164 | module_exit(mod_exit); | ||
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 78229b0dad2b..deef21399586 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -2837,7 +2837,7 @@ static void __devexit snd_m3_remove(struct pci_dev *pci) | |||
2837 | pci_set_drvdata(pci, NULL); | 2837 | pci_set_drvdata(pci, NULL); |
2838 | } | 2838 | } |
2839 | 2839 | ||
2840 | static struct pci_driver driver = { | 2840 | static struct pci_driver m3_driver = { |
2841 | .name = KBUILD_MODNAME, | 2841 | .name = KBUILD_MODNAME, |
2842 | .id_table = snd_m3_ids, | 2842 | .id_table = snd_m3_ids, |
2843 | .probe = snd_m3_probe, | 2843 | .probe = snd_m3_probe, |
@@ -2848,15 +2848,4 @@ static struct pci_driver driver = { | |||
2848 | #endif | 2848 | #endif |
2849 | }; | 2849 | }; |
2850 | 2850 | ||
2851 | static int __init alsa_card_m3_init(void) | 2851 | module_pci_driver(m3_driver); |
2852 | { | ||
2853 | return pci_register_driver(&driver); | ||
2854 | } | ||
2855 | |||
2856 | static void __exit alsa_card_m3_exit(void) | ||
2857 | { | ||
2858 | pci_unregister_driver(&driver); | ||
2859 | } | ||
2860 | |||
2861 | module_init(alsa_card_m3_init) | ||
2862 | module_exit(alsa_card_m3_exit) | ||
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index 487837c01c9f..0762610c99c0 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -1380,22 +1380,11 @@ static void __devexit snd_mixart_remove(struct pci_dev *pci) | |||
1380 | pci_set_drvdata(pci, NULL); | 1380 | pci_set_drvdata(pci, NULL); |
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | static struct pci_driver driver = { | 1383 | static struct pci_driver mixart_driver = { |
1384 | .name = KBUILD_MODNAME, | 1384 | .name = KBUILD_MODNAME, |
1385 | .id_table = snd_mixart_ids, | 1385 | .id_table = snd_mixart_ids, |
1386 | .probe = snd_mixart_probe, | 1386 | .probe = snd_mixart_probe, |
1387 | .remove = __devexit_p(snd_mixart_remove), | 1387 | .remove = __devexit_p(snd_mixart_remove), |
1388 | }; | 1388 | }; |
1389 | 1389 | ||
1390 | static int __init alsa_card_mixart_init(void) | 1390 | module_pci_driver(mixart_driver); |
1391 | { | ||
1392 | return pci_register_driver(&driver); | ||
1393 | } | ||
1394 | |||
1395 | static void __exit alsa_card_mixart_exit(void) | ||
1396 | { | ||
1397 | pci_unregister_driver(&driver); | ||
1398 | } | ||
1399 | |||
1400 | module_init(alsa_card_mixart_init) | ||
1401 | module_exit(alsa_card_mixart_exit) | ||
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index ade2c64bd606..8159b05ee94d 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -1742,7 +1742,7 @@ static void __devexit snd_nm256_remove(struct pci_dev *pci) | |||
1742 | } | 1742 | } |
1743 | 1743 | ||
1744 | 1744 | ||
1745 | static struct pci_driver driver = { | 1745 | static struct pci_driver nm256_driver = { |
1746 | .name = KBUILD_MODNAME, | 1746 | .name = KBUILD_MODNAME, |
1747 | .id_table = snd_nm256_ids, | 1747 | .id_table = snd_nm256_ids, |
1748 | .probe = snd_nm256_probe, | 1748 | .probe = snd_nm256_probe, |
@@ -1753,16 +1753,4 @@ static struct pci_driver driver = { | |||
1753 | #endif | 1753 | #endif |
1754 | }; | 1754 | }; |
1755 | 1755 | ||
1756 | 1756 | module_pci_driver(nm256_driver); | |
1757 | static int __init alsa_card_nm256_init(void) | ||
1758 | { | ||
1759 | return pci_register_driver(&driver); | ||
1760 | } | ||
1761 | |||
1762 | static void __exit alsa_card_nm256_exit(void) | ||
1763 | { | ||
1764 | pci_unregister_driver(&driver); | ||
1765 | } | ||
1766 | |||
1767 | module_init(alsa_card_nm256_init) | ||
1768 | module_exit(alsa_card_nm256_exit) | ||
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c index eab663eef117..6bc589dc6799 100644 --- a/sound/pci/oxygen/oxygen.c +++ b/sound/pci/oxygen/oxygen.c | |||
@@ -870,15 +870,4 @@ static struct pci_driver oxygen_driver = { | |||
870 | #endif | 870 | #endif |
871 | }; | 871 | }; |
872 | 872 | ||
873 | static int __init alsa_card_oxygen_init(void) | 873 | module_pci_driver(oxygen_driver); |
874 | { | ||
875 | return pci_register_driver(&oxygen_driver); | ||
876 | } | ||
877 | |||
878 | static void __exit alsa_card_oxygen_exit(void) | ||
879 | { | ||
880 | pci_unregister_driver(&oxygen_driver); | ||
881 | } | ||
882 | |||
883 | module_init(alsa_card_oxygen_init) | ||
884 | module_exit(alsa_card_oxygen_exit) | ||
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c index 3fdee4950174..19962c6d38c3 100644 --- a/sound/pci/oxygen/virtuoso.c +++ b/sound/pci/oxygen/virtuoso.c | |||
@@ -100,15 +100,4 @@ static struct pci_driver xonar_driver = { | |||
100 | .shutdown = oxygen_pci_shutdown, | 100 | .shutdown = oxygen_pci_shutdown, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | static int __init alsa_card_xonar_init(void) | 103 | module_pci_driver(xonar_driver); |
104 | { | ||
105 | return pci_register_driver(&xonar_driver); | ||
106 | } | ||
107 | |||
108 | static void __exit alsa_card_xonar_exit(void) | ||
109 | { | ||
110 | pci_unregister_driver(&xonar_driver); | ||
111 | } | ||
112 | |||
113 | module_init(alsa_card_xonar_init) | ||
114 | module_exit(alsa_card_xonar_exit) | ||
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index fd1809ab73b4..0435f45e9513 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -1607,22 +1607,11 @@ static void __devexit pcxhr_remove(struct pci_dev *pci) | |||
1607 | pci_set_drvdata(pci, NULL); | 1607 | pci_set_drvdata(pci, NULL); |
1608 | } | 1608 | } |
1609 | 1609 | ||
1610 | static struct pci_driver driver = { | 1610 | static struct pci_driver pcxhr_driver = { |
1611 | .name = KBUILD_MODNAME, | 1611 | .name = KBUILD_MODNAME, |
1612 | .id_table = pcxhr_ids, | 1612 | .id_table = pcxhr_ids, |
1613 | .probe = pcxhr_probe, | 1613 | .probe = pcxhr_probe, |
1614 | .remove = __devexit_p(pcxhr_remove), | 1614 | .remove = __devexit_p(pcxhr_remove), |
1615 | }; | 1615 | }; |
1616 | 1616 | ||
1617 | static int __init pcxhr_module_init(void) | 1617 | module_pci_driver(pcxhr_driver); |
1618 | { | ||
1619 | return pci_register_driver(&driver); | ||
1620 | } | ||
1621 | |||
1622 | static void __exit pcxhr_module_exit(void) | ||
1623 | { | ||
1624 | pci_unregister_driver(&driver); | ||
1625 | } | ||
1626 | |||
1627 | module_init(pcxhr_module_init) | ||
1628 | module_exit(pcxhr_module_exit) | ||
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index b4819d5e41db..46b3629dda22 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -1984,22 +1984,11 @@ static void __devexit snd_rme32_remove(struct pci_dev *pci) | |||
1984 | pci_set_drvdata(pci, NULL); | 1984 | pci_set_drvdata(pci, NULL); |
1985 | } | 1985 | } |
1986 | 1986 | ||
1987 | static struct pci_driver driver = { | 1987 | static struct pci_driver rme32_driver = { |
1988 | .name = KBUILD_MODNAME, | 1988 | .name = KBUILD_MODNAME, |
1989 | .id_table = snd_rme32_ids, | 1989 | .id_table = snd_rme32_ids, |
1990 | .probe = snd_rme32_probe, | 1990 | .probe = snd_rme32_probe, |
1991 | .remove = __devexit_p(snd_rme32_remove), | 1991 | .remove = __devexit_p(snd_rme32_remove), |
1992 | }; | 1992 | }; |
1993 | 1993 | ||
1994 | static int __init alsa_card_rme32_init(void) | 1994 | module_pci_driver(rme32_driver); |
1995 | { | ||
1996 | return pci_register_driver(&driver); | ||
1997 | } | ||
1998 | |||
1999 | static void __exit alsa_card_rme32_exit(void) | ||
2000 | { | ||
2001 | pci_unregister_driver(&driver); | ||
2002 | } | ||
2003 | |||
2004 | module_init(alsa_card_rme32_init) | ||
2005 | module_exit(alsa_card_rme32_exit) | ||
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index ba894158e76c..9b98dc406988 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -2395,22 +2395,11 @@ static void __devexit snd_rme96_remove(struct pci_dev *pci) | |||
2395 | pci_set_drvdata(pci, NULL); | 2395 | pci_set_drvdata(pci, NULL); |
2396 | } | 2396 | } |
2397 | 2397 | ||
2398 | static struct pci_driver driver = { | 2398 | static struct pci_driver rme96_driver = { |
2399 | .name = KBUILD_MODNAME, | 2399 | .name = KBUILD_MODNAME, |
2400 | .id_table = snd_rme96_ids, | 2400 | .id_table = snd_rme96_ids, |
2401 | .probe = snd_rme96_probe, | 2401 | .probe = snd_rme96_probe, |
2402 | .remove = __devexit_p(snd_rme96_remove), | 2402 | .remove = __devexit_p(snd_rme96_remove), |
2403 | }; | 2403 | }; |
2404 | 2404 | ||
2405 | static int __init alsa_card_rme96_init(void) | 2405 | module_pci_driver(rme96_driver); |
2406 | { | ||
2407 | return pci_register_driver(&driver); | ||
2408 | } | ||
2409 | |||
2410 | static void __exit alsa_card_rme96_exit(void) | ||
2411 | { | ||
2412 | pci_unregister_driver(&driver); | ||
2413 | } | ||
2414 | |||
2415 | module_init(alsa_card_rme96_init) | ||
2416 | module_exit(alsa_card_rme96_exit) | ||
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index b68cdec03b9e..5cc31a400810 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c | |||
@@ -5635,22 +5635,11 @@ static void __devexit snd_hdsp_remove(struct pci_dev *pci) | |||
5635 | pci_set_drvdata(pci, NULL); | 5635 | pci_set_drvdata(pci, NULL); |
5636 | } | 5636 | } |
5637 | 5637 | ||
5638 | static struct pci_driver driver = { | 5638 | static struct pci_driver hdsp_driver = { |
5639 | .name = KBUILD_MODNAME, | 5639 | .name = KBUILD_MODNAME, |
5640 | .id_table = snd_hdsp_ids, | 5640 | .id_table = snd_hdsp_ids, |
5641 | .probe = snd_hdsp_probe, | 5641 | .probe = snd_hdsp_probe, |
5642 | .remove = __devexit_p(snd_hdsp_remove), | 5642 | .remove = __devexit_p(snd_hdsp_remove), |
5643 | }; | 5643 | }; |
5644 | 5644 | ||
5645 | static int __init alsa_card_hdsp_init(void) | 5645 | module_pci_driver(hdsp_driver); |
5646 | { | ||
5647 | return pci_register_driver(&driver); | ||
5648 | } | ||
5649 | |||
5650 | static void __exit alsa_card_hdsp_exit(void) | ||
5651 | { | ||
5652 | pci_unregister_driver(&driver); | ||
5653 | } | ||
5654 | |||
5655 | module_init(alsa_card_hdsp_init) | ||
5656 | module_exit(alsa_card_hdsp_exit) | ||
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index bc030a2088da..0a5027b94714 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -6918,23 +6918,11 @@ static void __devexit snd_hdspm_remove(struct pci_dev *pci) | |||
6918 | pci_set_drvdata(pci, NULL); | 6918 | pci_set_drvdata(pci, NULL); |
6919 | } | 6919 | } |
6920 | 6920 | ||
6921 | static struct pci_driver driver = { | 6921 | static struct pci_driver hdspm_driver = { |
6922 | .name = KBUILD_MODNAME, | 6922 | .name = KBUILD_MODNAME, |
6923 | .id_table = snd_hdspm_ids, | 6923 | .id_table = snd_hdspm_ids, |
6924 | .probe = snd_hdspm_probe, | 6924 | .probe = snd_hdspm_probe, |
6925 | .remove = __devexit_p(snd_hdspm_remove), | 6925 | .remove = __devexit_p(snd_hdspm_remove), |
6926 | }; | 6926 | }; |
6927 | 6927 | ||
6928 | 6928 | module_pci_driver(hdspm_driver); | |
6929 | static int __init alsa_card_hdspm_init(void) | ||
6930 | { | ||
6931 | return pci_register_driver(&driver); | ||
6932 | } | ||
6933 | |||
6934 | static void __exit alsa_card_hdspm_exit(void) | ||
6935 | { | ||
6936 | pci_unregister_driver(&driver); | ||
6937 | } | ||
6938 | |||
6939 | module_init(alsa_card_hdspm_init) | ||
6940 | module_exit(alsa_card_hdspm_exit) | ||
diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index b737d1619cc7..a15fc100ab0c 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c | |||
@@ -2631,22 +2631,11 @@ static void __devexit snd_rme9652_remove(struct pci_dev *pci) | |||
2631 | pci_set_drvdata(pci, NULL); | 2631 | pci_set_drvdata(pci, NULL); |
2632 | } | 2632 | } |
2633 | 2633 | ||
2634 | static struct pci_driver driver = { | 2634 | static struct pci_driver rme9652_driver = { |
2635 | .name = KBUILD_MODNAME, | 2635 | .name = KBUILD_MODNAME, |
2636 | .id_table = snd_rme9652_ids, | 2636 | .id_table = snd_rme9652_ids, |
2637 | .probe = snd_rme9652_probe, | 2637 | .probe = snd_rme9652_probe, |
2638 | .remove = __devexit_p(snd_rme9652_remove), | 2638 | .remove = __devexit_p(snd_rme9652_remove), |
2639 | }; | 2639 | }; |
2640 | 2640 | ||
2641 | static int __init alsa_card_hammerfall_init(void) | 2641 | module_pci_driver(rme9652_driver); |
2642 | { | ||
2643 | return pci_register_driver(&driver); | ||
2644 | } | ||
2645 | |||
2646 | static void __exit alsa_card_hammerfall_exit(void) | ||
2647 | { | ||
2648 | pci_unregister_driver(&driver); | ||
2649 | } | ||
2650 | |||
2651 | module_init(alsa_card_hammerfall_init) | ||
2652 | module_exit(alsa_card_hammerfall_exit) | ||
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c index ff500a87f769..1552642765d6 100644 --- a/sound/pci/sis7019.c +++ b/sound/pci/sis7019.c | |||
@@ -1488,15 +1488,4 @@ static struct pci_driver sis7019_driver = { | |||
1488 | #endif | 1488 | #endif |
1489 | }; | 1489 | }; |
1490 | 1490 | ||
1491 | static int __init sis7019_init(void) | 1491 | module_pci_driver(sis7019_driver); |
1492 | { | ||
1493 | return pci_register_driver(&sis7019_driver); | ||
1494 | } | ||
1495 | |||
1496 | static void __exit sis7019_exit(void) | ||
1497 | { | ||
1498 | pci_unregister_driver(&sis7019_driver); | ||
1499 | } | ||
1500 | |||
1501 | module_init(sis7019_init); | ||
1502 | module_exit(sis7019_exit); | ||
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index 54cc802050f7..baa9946bedf0 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -1530,22 +1530,11 @@ static void __devexit snd_sonic_remove(struct pci_dev *pci) | |||
1530 | pci_set_drvdata(pci, NULL); | 1530 | pci_set_drvdata(pci, NULL); |
1531 | } | 1531 | } |
1532 | 1532 | ||
1533 | static struct pci_driver driver = { | 1533 | static struct pci_driver sonicvibes_driver = { |
1534 | .name = KBUILD_MODNAME, | 1534 | .name = KBUILD_MODNAME, |
1535 | .id_table = snd_sonic_ids, | 1535 | .id_table = snd_sonic_ids, |
1536 | .probe = snd_sonic_probe, | 1536 | .probe = snd_sonic_probe, |
1537 | .remove = __devexit_p(snd_sonic_remove), | 1537 | .remove = __devexit_p(snd_sonic_remove), |
1538 | }; | 1538 | }; |
1539 | 1539 | ||
1540 | static int __init alsa_card_sonicvibes_init(void) | 1540 | module_pci_driver(sonicvibes_driver); |
1541 | { | ||
1542 | return pci_register_driver(&driver); | ||
1543 | } | ||
1544 | |||
1545 | static void __exit alsa_card_sonicvibes_exit(void) | ||
1546 | { | ||
1547 | pci_unregister_driver(&driver); | ||
1548 | } | ||
1549 | |||
1550 | module_init(alsa_card_sonicvibes_init) | ||
1551 | module_exit(alsa_card_sonicvibes_exit) | ||
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index 5f1def7f45e5..611983ec7321 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c | |||
@@ -172,7 +172,7 @@ static void __devexit snd_trident_remove(struct pci_dev *pci) | |||
172 | pci_set_drvdata(pci, NULL); | 172 | pci_set_drvdata(pci, NULL); |
173 | } | 173 | } |
174 | 174 | ||
175 | static struct pci_driver driver = { | 175 | static struct pci_driver trident_driver = { |
176 | .name = KBUILD_MODNAME, | 176 | .name = KBUILD_MODNAME, |
177 | .id_table = snd_trident_ids, | 177 | .id_table = snd_trident_ids, |
178 | .probe = snd_trident_probe, | 178 | .probe = snd_trident_probe, |
@@ -183,15 +183,4 @@ static struct pci_driver driver = { | |||
183 | #endif | 183 | #endif |
184 | }; | 184 | }; |
185 | 185 | ||
186 | static int __init alsa_card_trident_init(void) | 186 | module_pci_driver(trident_driver); |
187 | { | ||
188 | return pci_register_driver(&driver); | ||
189 | } | ||
190 | |||
191 | static void __exit alsa_card_trident_exit(void) | ||
192 | { | ||
193 | pci_unregister_driver(&driver); | ||
194 | } | ||
195 | |||
196 | module_init(alsa_card_trident_init) | ||
197 | module_exit(alsa_card_trident_exit) | ||
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 75630408c6db..b5afab48943e 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -2619,7 +2619,7 @@ static void __devexit snd_via82xx_remove(struct pci_dev *pci) | |||
2619 | pci_set_drvdata(pci, NULL); | 2619 | pci_set_drvdata(pci, NULL); |
2620 | } | 2620 | } |
2621 | 2621 | ||
2622 | static struct pci_driver driver = { | 2622 | static struct pci_driver via82xx_driver = { |
2623 | .name = KBUILD_MODNAME, | 2623 | .name = KBUILD_MODNAME, |
2624 | .id_table = snd_via82xx_ids, | 2624 | .id_table = snd_via82xx_ids, |
2625 | .probe = snd_via82xx_probe, | 2625 | .probe = snd_via82xx_probe, |
@@ -2630,15 +2630,4 @@ static struct pci_driver driver = { | |||
2630 | #endif | 2630 | #endif |
2631 | }; | 2631 | }; |
2632 | 2632 | ||
2633 | static int __init alsa_card_via82xx_init(void) | 2633 | module_pci_driver(via82xx_driver); |
2634 | { | ||
2635 | return pci_register_driver(&driver); | ||
2636 | } | ||
2637 | |||
2638 | static void __exit alsa_card_via82xx_exit(void) | ||
2639 | { | ||
2640 | pci_unregister_driver(&driver); | ||
2641 | } | ||
2642 | |||
2643 | module_init(alsa_card_via82xx_init) | ||
2644 | module_exit(alsa_card_via82xx_exit) | ||
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index 5efcbcac506a..59fd47ed0a31 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -1223,7 +1223,7 @@ static void __devexit snd_via82xx_remove(struct pci_dev *pci) | |||
1223 | pci_set_drvdata(pci, NULL); | 1223 | pci_set_drvdata(pci, NULL); |
1224 | } | 1224 | } |
1225 | 1225 | ||
1226 | static struct pci_driver driver = { | 1226 | static struct pci_driver via82xx_modem_driver = { |
1227 | .name = KBUILD_MODNAME, | 1227 | .name = KBUILD_MODNAME, |
1228 | .id_table = snd_via82xx_modem_ids, | 1228 | .id_table = snd_via82xx_modem_ids, |
1229 | .probe = snd_via82xx_probe, | 1229 | .probe = snd_via82xx_probe, |
@@ -1234,15 +1234,4 @@ static struct pci_driver driver = { | |||
1234 | #endif | 1234 | #endif |
1235 | }; | 1235 | }; |
1236 | 1236 | ||
1237 | static int __init alsa_card_via82xx_init(void) | 1237 | module_pci_driver(via82xx_modem_driver); |
1238 | { | ||
1239 | return pci_register_driver(&driver); | ||
1240 | } | ||
1241 | |||
1242 | static void __exit alsa_card_via82xx_exit(void) | ||
1243 | { | ||
1244 | pci_unregister_driver(&driver); | ||
1245 | } | ||
1246 | |||
1247 | module_init(alsa_card_via82xx_init) | ||
1248 | module_exit(alsa_card_via82xx_exit) | ||
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index 6a534bfe1274..1ea1f656a5dc 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c | |||
@@ -289,7 +289,7 @@ static int snd_vx222_resume(struct pci_dev *pci) | |||
289 | } | 289 | } |
290 | #endif | 290 | #endif |
291 | 291 | ||
292 | static struct pci_driver driver = { | 292 | static struct pci_driver vx222_driver = { |
293 | .name = KBUILD_MODNAME, | 293 | .name = KBUILD_MODNAME, |
294 | .id_table = snd_vx222_ids, | 294 | .id_table = snd_vx222_ids, |
295 | .probe = snd_vx222_probe, | 295 | .probe = snd_vx222_probe, |
@@ -300,15 +300,4 @@ static struct pci_driver driver = { | |||
300 | #endif | 300 | #endif |
301 | }; | 301 | }; |
302 | 302 | ||
303 | static int __init alsa_card_vx222_init(void) | 303 | module_pci_driver(vx222_driver); |
304 | { | ||
305 | return pci_register_driver(&driver); | ||
306 | } | ||
307 | |||
308 | static void __exit alsa_card_vx222_exit(void) | ||
309 | { | ||
310 | pci_unregister_driver(&driver); | ||
311 | } | ||
312 | |||
313 | module_init(alsa_card_vx222_init) | ||
314 | module_exit(alsa_card_vx222_exit) | ||
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 94ab728f5ca8..9a1d01d653a7 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -350,7 +350,7 @@ static void __devexit snd_card_ymfpci_remove(struct pci_dev *pci) | |||
350 | pci_set_drvdata(pci, NULL); | 350 | pci_set_drvdata(pci, NULL); |
351 | } | 351 | } |
352 | 352 | ||
353 | static struct pci_driver driver = { | 353 | static struct pci_driver ymfpci_driver = { |
354 | .name = KBUILD_MODNAME, | 354 | .name = KBUILD_MODNAME, |
355 | .id_table = snd_ymfpci_ids, | 355 | .id_table = snd_ymfpci_ids, |
356 | .probe = snd_card_ymfpci_probe, | 356 | .probe = snd_card_ymfpci_probe, |
@@ -361,15 +361,4 @@ static struct pci_driver driver = { | |||
361 | #endif | 361 | #endif |
362 | }; | 362 | }; |
363 | 363 | ||
364 | static int __init alsa_card_ymfpci_init(void) | 364 | module_pci_driver(ymfpci_driver); |
365 | { | ||
366 | return pci_register_driver(&driver); | ||
367 | } | ||
368 | |||
369 | static void __exit alsa_card_ymfpci_exit(void) | ||
370 | { | ||
371 | pci_unregister_driver(&driver); | ||
372 | } | ||
373 | |||
374 | module_init(alsa_card_ymfpci_init) | ||
375 | module_exit(alsa_card_ymfpci_exit) | ||