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

ALSA: drivers: 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>

-59
-16
sound/drivers/mpu401/mpu401_uart.c
··· 617 617 } 618 618 619 619 EXPORT_SYMBOL(snd_mpu401_uart_new); 620 - 621 - /* 622 - * INIT part 623 - */ 624 - 625 - static int __init alsa_mpu401_uart_init(void) 626 - { 627 - return 0; 628 - } 629 - 630 - static void __exit alsa_mpu401_uart_exit(void) 631 - { 632 - } 633 - 634 - module_init(alsa_mpu401_uart_init) 635 - module_exit(alsa_mpu401_uart_exit)
-16
sound/drivers/opl3/opl3_lib.c
··· 538 538 } 539 539 540 540 EXPORT_SYMBOL(snd_opl3_hwdep_new); 541 - 542 - /* 543 - * INIT part 544 - */ 545 - 546 - static int __init alsa_opl3_init(void) 547 - { 548 - return 0; 549 - } 550 - 551 - static void __exit alsa_opl3_exit(void) 552 - { 553 - } 554 - 555 - module_init(alsa_opl3_init) 556 - module_exit(alsa_opl3_exit)
-12
sound/drivers/opl4/opl4_lib.c
··· 263 263 } 264 264 265 265 EXPORT_SYMBOL(snd_opl4_create); 266 - 267 - static int __init alsa_opl4_init(void) 268 - { 269 - return 0; 270 - } 271 - 272 - static void __exit alsa_opl4_exit(void) 273 - { 274 - } 275 - 276 - module_init(alsa_opl4_init) 277 - module_exit(alsa_opl4_exit)
-15
sound/drivers/vx/vx_core.c
··· 815 815 } 816 816 817 817 EXPORT_SYMBOL(snd_vx_create); 818 - 819 - /* 820 - * module entries 821 - */ 822 - static int __init alsa_vx_core_init(void) 823 - { 824 - return 0; 825 - } 826 - 827 - static void __exit alsa_vx_core_exit(void) 828 - { 829 - } 830 - 831 - module_init(alsa_vx_core_init) 832 - module_exit(alsa_vx_core_exit)