From: Ethan Nelson-Moore Date: Sat, 31 Jan 2026 02:01:10 +0000 (-0800) Subject: ASoC: wcd-mbhc-v2: remove unnecessary module_init/exit functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=090c8844e5d454a898183ec4a7be8a75681ed262;p=thirdparty%2Fkernel%2Flinux.git ASoC: wcd-mbhc-v2: remove unnecessary module_init/exit functions 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 Reviewed-by: Dmitry Baryshkov Link: https://patch.msgid.link/20260131020111.46108-1-enelsonmoore@gmail.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wcd-mbhc-v2.c b/sound/soc/codecs/wcd-mbhc-v2.c index 26ebcdadeb7da..0c842aaa7eec8 100644 --- a/sound/soc/codecs/wcd-mbhc-v2.c +++ b/sound/soc/codecs/wcd-mbhc-v2.c @@ -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");