Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: isa: Remove empty init and exit

For a sake of code simplification, remove the init and the exit
entries that do nothing.

Notes for readers: actually it's OK to remove *both* init and exit,
but not OK to remove the exit entry. By removing only the exit while
keeping init, the module becomes permanently loaded; i.e. you cannot
unload it any longer!

Signed-off-by: Takashi Iwai <tiwai@suse.de>

-112
-16
sound/isa/es1688/es1688_lib.c
··· 1029 1029 EXPORT_SYMBOL(snd_es1688_create); 1030 1030 EXPORT_SYMBOL(snd_es1688_pcm); 1031 1031 EXPORT_SYMBOL(snd_es1688_mixer); 1032 - 1033 - /* 1034 - * INIT part 1035 - */ 1036 - 1037 - static int __init alsa_es1688_init(void) 1038 - { 1039 - return 0; 1040 - } 1041 - 1042 - static void __exit alsa_es1688_exit(void) 1043 - { 1044 - } 1045 - 1046 - module_init(alsa_es1688_init) 1047 - module_exit(alsa_es1688_exit)
-16
sound/isa/gus/gus_main.c
··· 465 465 EXPORT_SYMBOL(snd_gf1_mem_xfree); 466 466 EXPORT_SYMBOL(snd_gf1_mem_free); 467 467 EXPORT_SYMBOL(snd_gf1_mem_lock); 468 - 469 - /* 470 - * INIT part 471 - */ 472 - 473 - static int __init alsa_gus_init(void) 474 - { 475 - return 0; 476 - } 477 - 478 - static void __exit alsa_gus_exit(void) 479 - { 480 - } 481 - 482 - module_init(alsa_gus_init) 483 - module_exit(alsa_gus_exit)
-16
sound/isa/sb/sb16_csp.c
··· 1185 1185 /* */ 1186 1186 1187 1187 EXPORT_SYMBOL(snd_sb_csp_new); 1188 - 1189 - /* 1190 - * INIT part 1191 - */ 1192 - 1193 - static int __init alsa_sb_csp_init(void) 1194 - { 1195 - return 0; 1196 - } 1197 - 1198 - static void __exit alsa_sb_csp_exit(void) 1199 - { 1200 - } 1201 - 1202 - module_init(alsa_sb_csp_init) 1203 - module_exit(alsa_sb_csp_exit)
-16
sound/isa/sb/sb16_main.c
··· 900 900 EXPORT_SYMBOL(snd_sb16dsp_get_pcm_ops); 901 901 EXPORT_SYMBOL(snd_sb16dsp_configure); 902 902 EXPORT_SYMBOL(snd_sb16dsp_interrupt); 903 - 904 - /* 905 - * INIT part 906 - */ 907 - 908 - static int __init alsa_sb16_init(void) 909 - { 910 - return 0; 911 - } 912 - 913 - static void __exit alsa_sb16_exit(void) 914 - { 915 - } 916 - 917 - module_init(alsa_sb16_init) 918 - module_exit(alsa_sb16_exit)
-16
sound/isa/sb/sb8_main.c
··· 621 621 /* sb8_midi.c */ 622 622 EXPORT_SYMBOL(snd_sb8dsp_midi_interrupt); 623 623 EXPORT_SYMBOL(snd_sb8dsp_midi); 624 - 625 - /* 626 - * INIT part 627 - */ 628 - 629 - static int __init alsa_sb8_init(void) 630 - { 631 - return 0; 632 - } 633 - 634 - static void __exit alsa_sb8_exit(void) 635 - { 636 - } 637 - 638 - module_init(alsa_sb8_init) 639 - module_exit(alsa_sb8_exit)
-16
sound/isa/sb/sb_common.c
··· 305 305 EXPORT_SYMBOL(snd_sbmixer_suspend); 306 306 EXPORT_SYMBOL(snd_sbmixer_resume); 307 307 #endif 308 - 309 - /* 310 - * INIT part 311 - */ 312 - 313 - static int __init alsa_sb_common_init(void) 314 - { 315 - return 0; 316 - } 317 - 318 - static void __exit alsa_sb_common_exit(void) 319 - { 320 - } 321 - 322 - module_init(alsa_sb_common_init) 323 - module_exit(alsa_sb_common_exit)
-16
sound/isa/wss/wss_lib.c
··· 2279 2279 &snd_wss_playback_ops : &snd_wss_capture_ops; 2280 2280 } 2281 2281 EXPORT_SYMBOL(snd_wss_get_pcm_ops); 2282 - 2283 - /* 2284 - * INIT part 2285 - */ 2286 - 2287 - static int __init alsa_wss_init(void) 2288 - { 2289 - return 0; 2290 - } 2291 - 2292 - static void __exit alsa_wss_exit(void) 2293 - { 2294 - } 2295 - 2296 - module_init(alsa_wss_init); 2297 - module_exit(alsa_wss_exit);