ALSA: Remove empty init and exit
Subsystems (3)
cover ALSA: Remove empty init and exit
Hi,
here is a patchset of trivial cleanups I noticed while working on the recent sequencer bug. There are a bunch of driver codes that have empty module init and exit entries, and we can remove them gracefully.
Takashi
===
Takashi Iwai (6):
ALSA: compress: Remove empty init and exit
ALSA: drivers: Remove empty init and exit
ALSA: isa: Remove empty init and exit
ALSA: i2c: Remove empty init and exit
ALSA: pci: Remove empty init and exit
ALSA: synth: Remove empty init and exit
sound/core/compress_offload.c | 12 ------------ sound/drivers/mpu401/mpu401_uart.c | 16 ---------------- sound/drivers/opl3/opl3_lib.c | 16 ---------------- sound/drivers/opl4/opl4_lib.c | 12 ------------ sound/drivers/vx/vx_core.c | 15 --------------- sound/i2c/cs8427.c | 12 ------------ sound/i2c/i2c.c | 13 ------------- sound/i2c/other/ak4xxx-adda.c | 12 ------------ sound/i2c/tea6330t.c | 16 ---------------- sound/isa/es1688/es1688_lib.c | 16 ---------------- sound/isa/gus/gus_main.c | 16 ---------------- sound/isa/sb/sb16_csp.c | 16 ---------------- sound/isa/sb/sb16_main.c | 16 ---------------- sound/isa/sb/sb8_main.c | 16 ---------------- sound/isa/sb/sb_common.c | 16 ---------------- sound/isa/wss/wss_lib.c | 16 ---------------- sound/pci/ac97/ac97_codec.c | 16 ---------------- sound/pci/ice1712/ak4xxx.c | 12 ------------ sound/synth/emux/emux.c | 17 ----------------- sound/synth/util_mem.c | 16 ---------------- 20 files changed, 297 deletions(-)
Signature · 1 line
2.18.0
PATCH 1/6 ALSA: compress: 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!
--- sound/core/compress_offload.c | 12 ------------ 1 file changed, 12 deletions(-)
sound/core/compress_offload.c +0 -12
@@ -1160,18 +1160,6 @@ int snd_compress_deregister(struct snd_compr *device) }EXPORT_SYMBOL_GPL (snd_compress_deregister); -static int __init snd_compress_init (void ) -{ -return 0 ; -} - -static void __exit snd_compress_exit(void) -{ -} - -module_init (snd_compress_init); -module_exit (snd_compress_exit); -MODULE_DESCRIPTION ("ALSA Compressed offload framework" );MODULE_AUTHOR ("Vinod Koul <[email protected]>" );MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.18.0
PATCH 2/6 ALSA: drivers: Remove empty init and exit
In reply to Takashi IwaiFor 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!
--- sound/drivers/mpu401/mpu401_uart.c | 16 ---------------- sound/drivers/opl3/opl3_lib.c | 16 ---------------- sound/drivers/opl4/opl4_lib.c | 12 ------------ sound/drivers/vx/vx_core.c | 15 --------------- 4 files changed, 59 deletions(-)
sound/drivers/mpu401/mpu401_uart.c +0 -16
@@ -617,19 +617,3 @@ int snd_mpu401_uart_new(struct snd_card *card, int device, }EXPORT_SYMBOL (snd_mpu401_uart_new); - -/* -* INIT part -*/ - -static int __init alsa_mpu401_uart_init (void ) -{ -return 0 ; -} - -static void __exit alsa_mpu401_uart_exit(void) -{ -} - -module_init (alsa_mpu401_uart_init) -module_exit (alsa_mpu401_uart_exit)
sound/drivers/opl3/opl3_lib.c +0 -16
@@ -538,19 +538,3 @@ int snd_opl3_hwdep_new(struct snd_opl3 * opl3, }EXPORT_SYMBOL (snd_opl3_hwdep_new); - -/* -* INIT part -*/ - -static int __init alsa_opl3_init (void ) -{ -return 0 ; -} - -static void __exit alsa_opl3_exit(void) -{ -} - -module_init (alsa_opl3_init) -module_exit (alsa_opl3_exit)
sound/drivers/opl4/opl4_lib.c +0 -12
@@ -263,15 +263,3 @@ int snd_opl4_create(struct snd_card *card, }EXPORT_SYMBOL (snd_opl4_create); - -static int __init alsa_opl4_init (void ) -{ -return 0 ; -} - -static void __exit alsa_opl4_exit(void) -{ -} - -module_init (alsa_opl4_init) -module_exit (alsa_opl4_exit)
sound/drivers/vx/vx_core.c +0 -15
@@ -815,18 +815,3 @@ struct vx_core *snd_vx_create(struct snd_card *card, struct snd_vx_hardware *hw, }EXPORT_SYMBOL (snd_vx_create); - -/* -* module entries -*/ -static int __init alsa_vx_core_init (void ) -{ -return 0 ; -} - -static void __exit alsa_vx_core_exit(void) -{ -} - -module_init (alsa_vx_core_init) -module_exit (alsa_vx_core_exit)
Signature · 1 line
2.18.0
PATCH 3/6 ALSA: isa: Remove empty init and exit
In reply to Takashi IwaiFor 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!
--- sound/isa/es1688/es1688_lib.c | 16 ---------------- sound/isa/gus/gus_main.c | 16 ---------------- sound/isa/sb/sb16_csp.c | 16 ---------------- sound/isa/sb/sb16_main.c | 16 ---------------- sound/isa/sb/sb8_main.c | 16 ---------------- sound/isa/sb/sb_common.c | 16 ---------------- sound/isa/wss/wss_lib.c | 16 ---------------- 7 files changed, 112 deletions(-)
sound/isa/es1688/es1688_lib.c +0 -16
@@ -1029,19 +1029,3 @@ EXPORT_SYMBOL(snd_es1688_mixer_write);EXPORT_SYMBOL (snd_es1688_create);EXPORT_SYMBOL (snd_es1688_pcm);EXPORT_SYMBOL (snd_es1688_mixer); - -/* -* INIT part -*/ - -static int __init alsa_es1688_init (void ) -{ -return 0 ; -} - -static void __exit alsa_es1688_exit(void) -{ -} - -module_init (alsa_es1688_init) -module_exit (alsa_es1688_exit)
sound/isa/gus/gus_main.c +0 -16
@@ -465,19 +465,3 @@ EXPORT_SYMBOL(snd_gf1_mem_alloc);EXPORT_SYMBOL (snd_gf1_mem_xfree);EXPORT_SYMBOL (snd_gf1_mem_free);EXPORT_SYMBOL (snd_gf1_mem_lock); - -/* -* INIT part -*/ - -static int __init alsa_gus_init (void ) -{ -return 0 ; -} - -static void __exit alsa_gus_exit(void) -{ -} - -module_init (alsa_gus_init) -module_exit (alsa_gus_exit)
sound/isa/sb/sb16_csp.c +0 -16
@@ -1185,19 +1185,3 @@ static void info_read(struct snd_info_entry *entry, struct snd_info_buffer *buff/* */ EXPORT_SYMBOL (snd_sb_csp_new); - -/* -* INIT part -*/ - -static int __init alsa_sb_csp_init (void ) -{ -return 0 ; -} - -static void __exit alsa_sb_csp_exit(void) -{ -} - -module_init (alsa_sb_csp_init) -module_exit (alsa_sb_csp_exit)
sound/isa/sb/sb16_main.c +0 -16
@@ -900,19 +900,3 @@ EXPORT_SYMBOL(snd_sb16dsp_pcm);EXPORT_SYMBOL (snd_sb16dsp_get_pcm_ops);EXPORT_SYMBOL (snd_sb16dsp_configure);EXPORT_SYMBOL (snd_sb16dsp_interrupt); - -/* -* INIT part -*/ - -static int __init alsa_sb16_init (void ) -{ -return 0 ; -} - -static void __exit alsa_sb16_exit(void) -{ -} - -module_init (alsa_sb16_init) -module_exit (alsa_sb16_exit)
sound/isa/sb/sb8_main.c +0 -16
@@ -621,19 +621,3 @@ EXPORT_SYMBOL(snd_sb8dsp_interrupt);/* sb8_midi.c */ EXPORT_SYMBOL (snd_sb8dsp_midi_interrupt);EXPORT_SYMBOL (snd_sb8dsp_midi); - -/* -* INIT part -*/ - -static int __init alsa_sb8_init (void ) -{ -return 0 ; -} - -static void __exit alsa_sb8_exit(void) -{ -} - -module_init (alsa_sb8_init) -module_exit (alsa_sb8_exit)
sound/isa/sb/sb_common.c +0 -16
@@ -305,19 +305,3 @@ EXPORT_SYMBOL(snd_sbmixer_add_ctl);EXPORT_SYMBOL (snd_sbmixer_suspend);EXPORT_SYMBOL (snd_sbmixer_resume);#endif - -/* -* INIT part -*/ - -static int __init alsa_sb_common_init (void ) -{ -return 0 ; -} - -static void __exit alsa_sb_common_exit(void) -{ -} - -module_init (alsa_sb_common_init) -module_exit (alsa_sb_common_exit)
sound/isa/wss/wss_lib.c +0 -16
@@ -2279,19 +2279,3 @@ const struct snd_pcm_ops *snd_wss_get_pcm_ops(int direction) &snd_wss_playback_ops : &snd_wss_capture_ops; }EXPORT_SYMBOL (snd_wss_get_pcm_ops); - -/* -* INIT part -*/ - -static int __init alsa_wss_init (void ) -{ -return 0 ; -} - -static void __exit alsa_wss_exit(void) -{ -} - -module_init (alsa_wss_init); -module_exit (alsa_wss_exit);
Signature · 1 line
2.18.0
PATCH 4/6 ALSA: i2c: Remove empty init and exit
In reply to Takashi IwaiFor 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!
--- sound/i2c/cs8427.c | 12 ------------ sound/i2c/i2c.c | 13 ------------- sound/i2c/other/ak4xxx-adda.c | 12 ------------ sound/i2c/tea6330t.c | 16 ---------------- 4 files changed, 53 deletions(-)
sound/i2c/cs8427.c +0 -12
@@ -621,15 +621,3 @@ int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate) }EXPORT_SYMBOL (snd_cs8427_iec958_pcm); - -static int __init alsa_cs8427_module_init (void ) -{ -return 0 ; -} - -static void __exit alsa_cs8427_module_exit(void) -{ -} - -module_init (alsa_cs8427_module_init) -module_exit (alsa_cs8427_module_exit)
sound/i2c/i2c.c +0 -13
@@ -338,16 +338,3 @@ static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, unsigned short addr)snd_i2c_bit_stop (bus);return err; } - - -static int __init alsa_i2c_init (void ) -{ -return 0 ; -} - -static void __exit alsa_i2c_exit(void) -{ -} - -module_init (alsa_i2c_init) -module_exit (alsa_i2c_exit)
sound/i2c/other/ak4xxx-adda.c +0 -12
@@ -911,15 +911,3 @@ int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak)return 0 ; }EXPORT_SYMBOL (snd_akm4xxx_build_controls); - -static int __init alsa_akm4xxx_module_init (void ) -{ -return 0 ; -} - -static void __exit alsa_akm4xxx_module_exit(void) -{ -} - -module_init (alsa_akm4xxx_module_init) -module_exit (alsa_akm4xxx_module_exit)
sound/i2c/tea6330t.c +0 -16
@@ -368,19 +368,3 @@ int snd_tea6330t_update_mixer(struct snd_card *card,EXPORT_SYMBOL (snd_tea6330t_detect);EXPORT_SYMBOL (snd_tea6330t_update_mixer); - -/* -* INIT part -*/ - -static int __init alsa_tea6330t_init (void ) -{ -return 0 ; -} - -static void __exit alsa_tea6330t_exit(void) -{ -} - -module_init (alsa_tea6330t_init) -module_exit (alsa_tea6330t_exit)
Signature · 1 line
2.18.0
PATCH 5/6 ALSA: pci: Remove empty init and exit
In reply to Takashi IwaiFor 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!
--- sound/pci/ac97/ac97_codec.c | 16 ---------------- sound/pci/ice1712/ak4xxx.c | 12 ------------ 2 files changed, 28 deletions(-)
sound/pci/ac97/ac97_codec.c +0 -16
@@ -2941,19 +2941,3 @@ int snd_ac97_tune_hardware(struct snd_ac97 *ac97, }EXPORT_SYMBOL (snd_ac97_tune_hardware); - -/* -* INIT part -*/ - -static int __init alsa_ac97_init (void ) -{ -return 0 ; -} - -static void __exit alsa_ac97_exit(void) -{ -} - -module_init (alsa_ac97_init) -module_exit (alsa_ac97_exit)
sound/pci/ice1712/ak4xxx.c +0 -12
@@ -179,18 +179,6 @@ int snd_ice1712_akm4xxx_build_controls(struct snd_ice1712 *ice)return 0 ; } -static int __init alsa_ice1712_akm4xxx_module_init (void ) -{ -return 0 ; -} - -static void __exit alsa_ice1712_akm4xxx_module_exit(void) -{ -} - -module_init(alsa_ice1712_akm4xxx_module_init) -module_exit(alsa_ice1712_akm4xxx_module_exit) -EXPORT_SYMBOL (snd_ice1712_akm4xxx_init);EXPORT_SYMBOL (snd_ice1712_akm4xxx_free);EXPORT_SYMBOL (snd_ice1712_akm4xxx_build_controls);
Signature · 1 line
2.18.0
PATCH 6/6 ALSA: synth: Remove empty init and exit
In reply to Takashi IwaiFor 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!
--- sound/synth/emux/emux.c | 17 ----------------- sound/synth/util_mem.c | 16 ---------------- 2 files changed, 33 deletions(-)
sound/synth/emux/emux.c +0 -17
@@ -163,20 +163,3 @@ int snd_emux_free(struct snd_emux *emu) }EXPORT_SYMBOL (snd_emux_free); - - -/* -* INIT part -*/ - -static int __init alsa_emux_init (void ) -{ -return 0 ; -} - -static void __exit alsa_emux_exit(void) -{ -} - -module_init (alsa_emux_init) -module_exit (alsa_emux_exit)
sound/synth/util_mem.c +0 -16
@@ -193,19 +193,3 @@ EXPORT_SYMBOL(snd_util_mem_avail);EXPORT_SYMBOL (__snd_util_mem_alloc);EXPORT_SYMBOL (__snd_util_mem_free);EXPORT_SYMBOL (__snd_util_memblk_new); - -/* -* INIT part -*/ - -static int __init alsa_util_mem_init (void ) -{ -return 0 ; -} - -static void __exit alsa_util_mem_exit(void) -{ -} - -module_init (alsa_util_mem_init) -module_exit (alsa_util_mem_exit)
Signature · 1 line
2.18.0