]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: wcd-mbhc-v2: remove unnecessary module_init/exit functions
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 31 Jan 2026 02:01:10 +0000 (18:01 -0800)
committerMark Brown <broonie@kernel.org>
Mon, 2 Feb 2026 21:52:18 +0000 (21:52 +0000)
The wcd-mbhc-v2 driver has unnecessary empty module_init and
module_exit functions. Remove them. Note that if a module_init function
exists, a module_exit function must also exist; otherwise, the module
cannot be unloaded.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260131020111.46108-1-enelsonmoore@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd-mbhc-v2.c

index 26ebcdadeb7dab19f132dc2e3dc843c895d7d4ed..0c842aaa7eec88dfa90c3ee10090a55698542a62 100644 (file)
@@ -1631,17 +1631,5 @@ void wcd_mbhc_deinit(struct wcd_mbhc *mbhc)
 }
 EXPORT_SYMBOL(wcd_mbhc_deinit);
 
-static int __init mbhc_init(void)
-{
-       return 0;
-}
-
-static void __exit mbhc_exit(void)
-{
-}
-
-module_init(mbhc_init);
-module_exit(mbhc_exit);
-
 MODULE_DESCRIPTION("wcd MBHC v2 module");
 MODULE_LICENSE("GPL");