]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform: x86: remove unnecessary module_init/exit() functions
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 31 Jan 2026 02:01:17 +0000 (18:01 -0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 2 Mar 2026 13:30:46 +0000 (15:30 +0200)
Two x86 platform drivers have unnecessary module_init() and module_exit()
functions that are empty or just print a message. Remove them.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260131020118.46171-1-enelsonmoore@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/mxm-wmi.c

index 7c0915e097bae5808f9b931fb1e7024020e3278a..6ba49bd375dfa6b48b80ca5628a927c27f3a5126 100644 (file)
@@ -5413,17 +5413,3 @@ void asus_wmi_unregister_driver(struct asus_wmi_driver *driver)
        used = false;
 }
 EXPORT_SYMBOL_GPL(asus_wmi_unregister_driver);
-
-static int __init asus_wmi_init(void)
-{
-       pr_info("ASUS WMI generic driver loaded\n");
-       return 0;
-}
-
-static void __exit asus_wmi_exit(void)
-{
-       pr_info("ASUS WMI generic driver unloaded\n");
-}
-
-module_init(asus_wmi_init);
-module_exit(asus_wmi_exit);
index 9a457956025a5be9526a38f6989eb246f137c456..dbc5e35ec38b67f395da2d656760878430b067ea 100644 (file)
@@ -80,15 +80,3 @@ bool mxm_wmi_supported(void)
        return guid_valid;
 }
 EXPORT_SYMBOL_GPL(mxm_wmi_supported);
-
-static int __init mxm_wmi_init(void)
-{
-       return 0;
-}
-
-static void __exit mxm_wmi_exit(void)
-{
-}
-
-module_init(mxm_wmi_init);
-module_exit(mxm_wmi_exit);