aboutsummaryrefslogtreecommitdiffstats
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
parent68853fa30cdb6a9a92f7ab46c34aedb24b2f9d56 (diff)
ALSA: pci: clean up using module_pci_driver()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/ad1889.c15
-rw-r--r--sound/pci/ali5451/ali5451.c15
-rw-r--r--sound/pci/als300.c15
-rw-r--r--sound/pci/als4000.c15
-rw-r--r--sound/pci/asihpi/asihpi.c19
-rw-r--r--sound/pci/atiixp.c16
-rw-r--r--sound/pci/atiixp_modem.c16
-rw-r--r--sound/pci/au88x0/au88x0.c17
-rw-r--r--sound/pci/aw2/aw2-alsa.c23
-rw-r--r--sound/pci/azt3328.c23
-rw-r--r--sound/pci/bt87x.c19
-rw-r--r--sound/pci/ca0106/ca0106_main.c17
-rw-r--r--sound/pci/cmipci.c15
-rw-r--r--sound/pci/cs4281.c15
-rw-r--r--sound/pci/cs46xx/cs46xx.c15
-rw-r--r--sound/pci/cs5530.c16
-rw-r--r--sound/pci/cs5535audio/cs5535audio.c15
-rw-r--r--sound/pci/ctxfi/xfi.c13
-rw-r--r--sound/pci/echoaudio/echoaudio.c22
-rw-r--r--sound/pci/emu10k1/emu10k1.c15
-rw-r--r--sound/pci/emu10k1/emu10k1x.c17
-rw-r--r--sound/pci/ens1370.c15
-rw-r--r--sound/pci/es1938.c15
-rw-r--r--sound/pci/es1968.c15
-rw-r--r--sound/pci/fm801.c15
-rw-r--r--sound/pci/hda/hda_intel.c15
-rw-r--r--sound/pci/ice1712/ice1712.c15
-rw-r--r--sound/pci/ice1712/ice1724.c15
-rw-r--r--sound/pci/intel8x0.c16
-rw-r--r--sound/pci/intel8x0m.c16
-rw-r--r--sound/pci/korg1212/korg1212.c15
-rw-r--r--sound/pci/lola/lola.c15
-rw-r--r--sound/pci/lx6464es/lx6464es.c17
-rw-r--r--sound/pci/maestro3.c15
-rw-r--r--sound/pci/mixart/mixart.c15
-rw-r--r--sound/pci/nm256/nm256.c16
-rw-r--r--sound/pci/oxygen/oxygen.c13
-rw-r--r--sound/pci/oxygen/virtuoso.c13
-rw-r--r--sound/pci/pcxhr/pcxhr.c15
-rw-r--r--sound/pci/rme32.c15
-rw-r--r--sound/pci/rme96.c15
-rw-r--r--sound/pci/rme9652/hdsp.c15
-rw-r--r--sound/pci/rme9652/hdspm.c16
-rw-r--r--sound/pci/rme9652/rme9652.c15
-rw-r--r--sound/pci/sis7019.c13
-rw-r--r--sound/pci/sonicvibes.c15
-rw-r--r--sound/pci/trident/trident.c15
-rw-r--r--sound/pci/via82xx.c15
-rw-r--r--sound/pci/via82xx_modem.c15
-rw-r--r--sound/pci/vx222/vx222.c15
-rw-r--r--sound/pci/ymfpci/ymfpci.c15
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
1065static int __init 1065module_pci_driver(ad1889_pci_driver);
1066alsa_ad1889_init(void)
1067{
1068 return pci_register_driver(&ad1889_pci_driver);
1069}
1070
1071static void __exit
1072alsa_ad1889_fini(void)
1073{
1074 pci_unregister_driver(&ad1889_pci_driver);
1075}
1076
1077module_init(alsa_ad1889_init);
1078module_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
2297static struct pci_driver driver = { 2297static 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
2308static int __init alsa_card_ali_init(void) 2308module_pci_driver(ali5451_driver);
2309{
2310 return pci_register_driver(&driver);
2311}
2312
2313static void __exit alsa_card_ali_exit(void)
2314{
2315 pci_unregister_driver(&driver);
2316}
2317
2318module_init(alsa_card_ali_init)
2319module_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
855static struct pci_driver driver = { 855static 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
866static int __init alsa_card_als300_init(void) 866module_pci_driver(als300_driver);
867{
868 return pci_register_driver(&driver);
869}
870
871static void __exit alsa_card_als300_exit(void)
872{
873 pci_unregister_driver(&driver);
874}
875
876module_init(alsa_card_als300_init)
877module_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
1039static struct pci_driver driver = { 1039static 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
1050static int __init alsa_card_als4000_init(void) 1050module_pci_driver(als4000_driver);
1051{
1052 return pci_register_driver(&driver);
1053}
1054
1055static void __exit alsa_card_als4000_exit(void)
1056{
1057 pci_unregister_driver(&driver);
1058}
1059
1060module_init(alsa_card_als4000_init)
1061module_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};
2964MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl); 2964MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl);
2965 2965
2966static struct pci_driver driver = { 2966static 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
2977static int __init snd_asihpi_init(void) 2977module_pci_driver(asihpi_driver);
2978{
2979 asihpi_init();
2980 return pci_register_driver(&driver);
2981}
2982
2983static void __exit snd_asihpi_exit(void)
2984{
2985
2986 pci_unregister_driver(&driver);
2987 asihpi_exit();
2988}
2989
2990module_init(snd_asihpi_init)
2991module_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
1703static struct pci_driver driver = { 1703static 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 1714module_pci_driver(atiixp_driver);
1715static int __init alsa_card_atiixp_init(void)
1716{
1717 return pci_register_driver(&driver);
1718}
1719
1720static void __exit alsa_card_atiixp_exit(void)
1721{
1722 pci_unregister_driver(&driver);
1723}
1724
1725module_init(alsa_card_atiixp_init)
1726module_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
1334static struct pci_driver driver = { 1334static 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 1345module_pci_driver(atiixp_modem_driver);
1346static int __init alsa_card_atiixp_init(void)
1347{
1348 return pci_register_driver(&driver);
1349}
1350
1351static void __exit alsa_card_atiixp_exit(void)
1352{
1353 pci_unregister_driver(&driver);
1354}
1355
1356module_init(alsa_card_atiixp_init)
1357module_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
378static struct pci_driver driver = { 378static 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 385module_pci_driver(vortex_driver);
386static int __init alsa_card_vortex_init(void)
387{
388 return pci_register_driver(&driver);
389}
390
391// clean up the module
392static void __exit alsa_card_vortex_exit(void)
393{
394 pci_unregister_driver(&driver);
395}
396
397module_init(alsa_card_vortex_init)
398module_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 ********************************/
115static int __init alsa_card_aw2_init(void);
116static void __exit alsa_card_aw2_exit(void);
117static int snd_aw2_dev_free(struct snd_device *device); 115static int snd_aw2_dev_free(struct snd_device *device);
118static int __devinit snd_aw2_create(struct snd_card *card, 116static 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) = {
171MODULE_DEVICE_TABLE(pci, snd_aw2_ids); 169MODULE_DEVICE_TABLE(pci, snd_aw2_ids);
172 170
173/* pci_driver definition */ 171/* pci_driver definition */
174static struct pci_driver driver = { 172static 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
179module_pci_driver(aw2_driver);
180
181/* operators for playback PCM alsa interface */ 181/* operators for playback PCM alsa interface */
182static struct snd_pcm_ops snd_aw2_playback_ops = { 182static 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 */
221static 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 */
228static 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
234module_init(alsa_card_aw2_init);
235module_exit(alsa_card_aw2_exit);
236
237/* component-destructor */ 220/* component-destructor */
238static int snd_aw2_dev_free(struct snd_device *device) 221static 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
2865static struct pci_driver driver = { 2865static 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
2876static int __init 2876module_pci_driver(azf3328_driver);
2877alsa_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
2886static void __exit
2887alsa_card_azf3328_exit(void)
2888{
2889 snd_azf3328_dbgcallenter();
2890 pci_unregister_driver(&driver);
2891 snd_azf3328_dbgcallleave();
2892}
2893
2894module_init(alsa_card_azf3328_init)
2895module_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
839static 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 */
842static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) 840static 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
967static struct pci_driver driver = { 965static 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
974static int __init alsa_card_bt87x_init(void) 972module_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
981static void __exit alsa_card_bt87x_exit(void)
982{
983 pci_unregister_driver(&driver);
984}
985
986module_init(alsa_card_bt87x_init)
987module_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) = {
1932MODULE_DEVICE_TABLE(pci, snd_ca0106_ids); 1932MODULE_DEVICE_TABLE(pci, snd_ca0106_ids);
1933 1933
1934// pci_driver definition 1934// pci_driver definition
1935static struct pci_driver driver = { 1935static 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 1946module_pci_driver(ca0106_driver);
1947static int __init alsa_card_ca0106_init(void)
1948{
1949 return pci_register_driver(&driver);
1950}
1951
1952// clean up the module
1953static void __exit alsa_card_ca0106_exit(void)
1954{
1955 pci_unregister_driver(&driver);
1956}
1957
1958module_init(alsa_card_ca0106_init)
1959module_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
3401static struct pci_driver driver = { 3401static 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
3412static int __init alsa_card_cmipci_init(void) 3412module_pci_driver(cmipci_driver);
3413{
3414 return pci_register_driver(&driver);
3415}
3416
3417static void __exit alsa_card_cmipci_exit(void)
3418{
3419 pci_unregister_driver(&driver);
3420}
3421
3422module_init(alsa_card_cmipci_init)
3423module_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
2087static struct pci_driver driver = { 2087static 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
2098static int __init alsa_card_cs4281_init(void) 2098module_pci_driver(cs4281_driver);
2099{
2100 return pci_register_driver(&driver);
2101}
2102
2103static void __exit alsa_card_cs4281_exit(void)
2104{
2105 pci_unregister_driver(&driver);
2106}
2107
2108module_init(alsa_card_cs4281_init)
2109module_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
164static struct pci_driver driver = { 164static 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
175static int __init alsa_card_cs46xx_init(void) 175module_pci_driver(cs46xx_driver);
176{
177 return pci_register_driver(&driver);
178}
179
180static void __exit alsa_card_cs46xx_exit(void)
181{
182 pci_unregister_driver(&driver);
183}
184
185module_init(alsa_card_cs46xx_init)
186module_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
294static struct pci_driver driver = { 294static 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
301static int __init alsa_card_cs5530_init(void) 301module_pci_driver(cs5530_driver);
302{
303 return pci_register_driver(&driver);
304}
305
306static void __exit alsa_card_cs5530_exit(void)
307{
308 pci_unregister_driver(&driver);
309}
310
311module_init(alsa_card_cs5530_init)
312module_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
397static struct pci_driver driver = { 397static 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
408static int __init alsa_card_cs5535audio_init(void) 408module_pci_driver(cs5535audio_driver);
409{
410 return pci_register_driver(&driver);
411}
412
413static void __exit alsa_card_cs5535audio_exit(void)
414{
415 pci_unregister_driver(&driver);
416}
417
418module_init(alsa_card_cs5535audio_init)
419module_exit(alsa_card_cs5535audio_exit)
420 409
421MODULE_AUTHOR("Jaya Kumar"); 410MODULE_AUTHOR("Jaya Kumar");
422MODULE_LICENSE("GPL"); 411MODULE_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
157static int __init ct_card_init(void) 157module_pci_driver(ct_driver);
158{
159 return pci_register_driver(&ct_driver);
160}
161
162static void __exit ct_card_exit(void)
163{
164 pci_unregister_driver(&ct_driver);
165}
166
167module_init(ct_card_init)
168module_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 */
2331static struct pci_driver driver = { 2331static 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 2342module_pci_driver(echo_driver);
2343
2344/* initialization of the module */
2345static int __init alsa_card_echo_init(void)
2346{
2347 return pci_register_driver(&driver);
2348}
2349
2350
2351
2352/* clean up the module */
2353static void __exit alsa_card_echo_exit(void)
2354{
2355 pci_unregister_driver(&driver);
2356}
2357
2358
2359module_init(alsa_card_echo_init)
2360module_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
266static struct pci_driver driver = { 266static 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
277static int __init alsa_card_emu10k1_init(void) 277module_pci_driver(emu10k1_driver);
278{
279 return pci_register_driver(&driver);
280}
281
282static void __exit alsa_card_emu10k1_exit(void)
283{
284 pci_unregister_driver(&driver);
285}
286
287module_init(alsa_card_emu10k1_init)
288module_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) = {
1612MODULE_DEVICE_TABLE(pci, snd_emu10k1x_ids); 1612MODULE_DEVICE_TABLE(pci, snd_emu10k1x_ids);
1613 1613
1614// pci_driver definition 1614// pci_driver definition
1615static struct pci_driver driver = { 1615static 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 1622module_pci_driver(emu10k1x_driver);
1623static int __init alsa_card_emu10k1x_init(void)
1624{
1625 return pci_register_driver(&driver);
1626}
1627
1628// clean up the module
1629static void __exit alsa_card_emu10k1x_exit(void)
1630{
1631 pci_unregister_driver(&driver);
1632}
1633
1634module_init(alsa_card_emu10k1x_init)
1635module_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
2491static struct pci_driver driver = { 2491static 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
2502static int __init alsa_card_ens137x_init(void) 2502module_pci_driver(ens137x_driver);
2503{
2504 return pci_register_driver(&driver);
2505}
2506
2507static void __exit alsa_card_ens137x_exit(void)
2508{
2509 pci_unregister_driver(&driver);
2510}
2511
2512module_init(alsa_card_ens137x_init)
2513module_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
1885static struct pci_driver driver = { 1885static 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
1896static int __init alsa_card_es1938_init(void) 1896module_pci_driver(es1938_driver);
1897{
1898 return pci_register_driver(&driver);
1899}
1900
1901static void __exit alsa_card_es1938_exit(void)
1902{
1903 pci_unregister_driver(&driver);
1904}
1905
1906module_init(alsa_card_es1938_init)
1907module_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
2901static struct pci_driver driver = { 2901static 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
2912static int __init alsa_card_es1968_init(void) 2912module_pci_driver(es1968_driver);
2913{
2914 return pci_register_driver(&driver);
2915}
2916
2917static void __exit alsa_card_es1968_exit(void)
2918{
2919 pci_unregister_driver(&driver);
2920}
2921
2922module_init(alsa_card_es1968_init)
2923module_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
1419static struct pci_driver driver = { 1419static 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
1430static int __init alsa_card_fm801_init(void) 1430module_pci_driver(fm801_driver);
1431{
1432 return pci_register_driver(&driver);
1433}
1434
1435static void __exit alsa_card_fm801_exit(void)
1436{
1437 pci_unregister_driver(&driver);
1438}
1439
1440module_init(alsa_card_fm801_init)
1441module_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) = {
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)
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)
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
2876static struct pci_driver driver = { 2876static 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
2887static int __init alsa_card_ice1724_init(void) 2887module_pci_driver(vt1724_driver);
2888{
2889 return pci_register_driver(&driver);
2890}
2891
2892static void __exit alsa_card_ice1724_exit(void)
2893{
2894 pci_unregister_driver(&driver);
2895}
2896
2897module_init(alsa_card_ice1724_init)
2898module_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
3341static struct pci_driver driver = { 3341static 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 3352module_pci_driver(intel8x0_driver);
3353static int __init alsa_card_intel8x0_init(void)
3354{
3355 return pci_register_driver(&driver);
3356}
3357
3358static void __exit alsa_card_intel8x0_exit(void)
3359{
3360 pci_unregister_driver(&driver);
3361}
3362
3363module_init(alsa_card_intel8x0_init)
3364module_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
1327static struct pci_driver driver = { 1327static 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 1338module_pci_driver(intel8x0m_driver);
1339static int __init alsa_card_intel8x0m_init(void)
1340{
1341 return pci_register_driver(&driver);
1342}
1343
1344static void __exit alsa_card_intel8x0m_exit(void)
1345{
1346 pci_unregister_driver(&driver);
1347}
1348
1349module_init(alsa_card_intel8x0m_init)
1350module_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
2479static struct pci_driver driver = { 2479static 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
2486static int __init alsa_card_korg1212_init(void) 2486module_pci_driver(korg1212_driver);
2487{
2488 return pci_register_driver(&driver);
2489}
2490
2491static void __exit alsa_card_korg1212_exit(void)
2492{
2493 pci_unregister_driver(&driver);
2494}
2495
2496module_init(alsa_card_korg1212_init)
2497module_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) = {
770MODULE_DEVICE_TABLE(pci, lola_ids); 770MODULE_DEVICE_TABLE(pci, lola_ids);
771 771
772/* pci_driver definition */ 772/* pci_driver definition */
773static struct pci_driver driver = { 773static 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
780static int __init alsa_card_lola_init(void) 780module_pci_driver(lola_driver);
781{
782 return pci_register_driver(&driver);
783}
784
785static void __exit alsa_card_lola_exit(void)
786{
787 pci_unregister_driver(&driver);
788}
789
790module_init(alsa_card_lola_init)
791module_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
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);
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
2840static struct pci_driver driver = { 2840static 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
2851static int __init alsa_card_m3_init(void) 2851module_pci_driver(m3_driver);
2852{
2853 return pci_register_driver(&driver);
2854}
2855
2856static void __exit alsa_card_m3_exit(void)
2857{
2858 pci_unregister_driver(&driver);
2859}
2860
2861module_init(alsa_card_m3_init)
2862module_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
1383static struct pci_driver driver = { 1383static 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
1390static int __init alsa_card_mixart_init(void) 1390module_pci_driver(mixart_driver);
1391{
1392 return pci_register_driver(&driver);
1393}
1394
1395static void __exit alsa_card_mixart_exit(void)
1396{
1397 pci_unregister_driver(&driver);
1398}
1399
1400module_init(alsa_card_mixart_init)
1401module_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
1745static struct pci_driver driver = { 1745static 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 1756module_pci_driver(nm256_driver);
1757static int __init alsa_card_nm256_init(void)
1758{
1759 return pci_register_driver(&driver);
1760}
1761
1762static void __exit alsa_card_nm256_exit(void)
1763{
1764 pci_unregister_driver(&driver);
1765}
1766
1767module_init(alsa_card_nm256_init)
1768module_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
873static int __init alsa_card_oxygen_init(void) 873module_pci_driver(oxygen_driver);
874{
875 return pci_register_driver(&oxygen_driver);
876}
877
878static void __exit alsa_card_oxygen_exit(void)
879{
880 pci_unregister_driver(&oxygen_driver);
881}
882
883module_init(alsa_card_oxygen_init)
884module_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
103static int __init alsa_card_xonar_init(void) 103module_pci_driver(xonar_driver);
104{
105 return pci_register_driver(&xonar_driver);
106}
107
108static void __exit alsa_card_xonar_exit(void)
109{
110 pci_unregister_driver(&xonar_driver);
111}
112
113module_init(alsa_card_xonar_init)
114module_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
1610static struct pci_driver driver = { 1610static 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
1617static int __init pcxhr_module_init(void) 1617module_pci_driver(pcxhr_driver);
1618{
1619 return pci_register_driver(&driver);
1620}
1621
1622static void __exit pcxhr_module_exit(void)
1623{
1624 pci_unregister_driver(&driver);
1625}
1626
1627module_init(pcxhr_module_init)
1628module_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
1987static struct pci_driver driver = { 1987static 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
1994static int __init alsa_card_rme32_init(void) 1994module_pci_driver(rme32_driver);
1995{
1996 return pci_register_driver(&driver);
1997}
1998
1999static void __exit alsa_card_rme32_exit(void)
2000{
2001 pci_unregister_driver(&driver);
2002}
2003
2004module_init(alsa_card_rme32_init)
2005module_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
2398static struct pci_driver driver = { 2398static 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
2405static int __init alsa_card_rme96_init(void) 2405module_pci_driver(rme96_driver);
2406{
2407 return pci_register_driver(&driver);
2408}
2409
2410static void __exit alsa_card_rme96_exit(void)
2411{
2412 pci_unregister_driver(&driver);
2413}
2414
2415module_init(alsa_card_rme96_init)
2416module_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
5638static struct pci_driver driver = { 5638static 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
5645static int __init alsa_card_hdsp_init(void) 5645module_pci_driver(hdsp_driver);
5646{
5647 return pci_register_driver(&driver);
5648}
5649
5650static void __exit alsa_card_hdsp_exit(void)
5651{
5652 pci_unregister_driver(&driver);
5653}
5654
5655module_init(alsa_card_hdsp_init)
5656module_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
6921static struct pci_driver driver = { 6921static 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 6928module_pci_driver(hdspm_driver);
6929static int __init alsa_card_hdspm_init(void)
6930{
6931 return pci_register_driver(&driver);
6932}
6933
6934static void __exit alsa_card_hdspm_exit(void)
6935{
6936 pci_unregister_driver(&driver);
6937}
6938
6939module_init(alsa_card_hdspm_init)
6940module_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
2634static struct pci_driver driver = { 2634static 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
2641static int __init alsa_card_hammerfall_init(void) 2641module_pci_driver(rme9652_driver);
2642{
2643 return pci_register_driver(&driver);
2644}
2645
2646static void __exit alsa_card_hammerfall_exit(void)
2647{
2648 pci_unregister_driver(&driver);
2649}
2650
2651module_init(alsa_card_hammerfall_init)
2652module_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
1491static int __init sis7019_init(void) 1491module_pci_driver(sis7019_driver);
1492{
1493 return pci_register_driver(&sis7019_driver);
1494}
1495
1496static void __exit sis7019_exit(void)
1497{
1498 pci_unregister_driver(&sis7019_driver);
1499}
1500
1501module_init(sis7019_init);
1502module_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
1533static struct pci_driver driver = { 1533static 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
1540static int __init alsa_card_sonicvibes_init(void) 1540module_pci_driver(sonicvibes_driver);
1541{
1542 return pci_register_driver(&driver);
1543}
1544
1545static void __exit alsa_card_sonicvibes_exit(void)
1546{
1547 pci_unregister_driver(&driver);
1548}
1549
1550module_init(alsa_card_sonicvibes_init)
1551module_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
175static struct pci_driver driver = { 175static 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
186static int __init alsa_card_trident_init(void) 186module_pci_driver(trident_driver);
187{
188 return pci_register_driver(&driver);
189}
190
191static void __exit alsa_card_trident_exit(void)
192{
193 pci_unregister_driver(&driver);
194}
195
196module_init(alsa_card_trident_init)
197module_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
2622static struct pci_driver driver = { 2622static 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
2633static int __init alsa_card_via82xx_init(void) 2633module_pci_driver(via82xx_driver);
2634{
2635 return pci_register_driver(&driver);
2636}
2637
2638static void __exit alsa_card_via82xx_exit(void)
2639{
2640 pci_unregister_driver(&driver);
2641}
2642
2643module_init(alsa_card_via82xx_init)
2644module_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
1226static struct pci_driver driver = { 1226static 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
1237static int __init alsa_card_via82xx_init(void) 1237module_pci_driver(via82xx_modem_driver);
1238{
1239 return pci_register_driver(&driver);
1240}
1241
1242static void __exit alsa_card_via82xx_exit(void)
1243{
1244 pci_unregister_driver(&driver);
1245}
1246
1247module_init(alsa_card_via82xx_init)
1248module_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
292static struct pci_driver driver = { 292static 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
303static int __init alsa_card_vx222_init(void) 303module_pci_driver(vx222_driver);
304{
305 return pci_register_driver(&driver);
306}
307
308static void __exit alsa_card_vx222_exit(void)
309{
310 pci_unregister_driver(&driver);
311}
312
313module_init(alsa_card_vx222_init)
314module_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
353static struct pci_driver driver = { 353static 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
364static int __init alsa_card_ymfpci_init(void) 364module_pci_driver(ymfpci_driver);
365{
366 return pci_register_driver(&driver);
367}
368
369static void __exit alsa_card_ymfpci_exit(void)
370{
371 pci_unregister_driver(&driver);
372}
373
374module_init(alsa_card_ymfpci_init)
375module_exit(alsa_card_ymfpci_exit)