Skip to content

Commit 090c884

Browse files
EthanNelson-Moorebroonie
authored andcommitted
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 <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>
1 parent 742048f commit 090c884

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

sound/soc/codecs/wcd-mbhc-v2.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,17 +1631,5 @@ void wcd_mbhc_deinit(struct wcd_mbhc *mbhc)
16311631
}
16321632
EXPORT_SYMBOL(wcd_mbhc_deinit);
16331633

1634-
static int __init mbhc_init(void)
1635-
{
1636-
return 0;
1637-
}
1638-
1639-
static void __exit mbhc_exit(void)
1640-
{
1641-
}
1642-
1643-
module_init(mbhc_init);
1644-
module_exit(mbhc_exit);
1645-
16461634
MODULE_DESCRIPTION("wcd MBHC v2 module");
16471635
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)