mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
platform: x86: remove unnecessary module_init/exit() functions
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>
This commit is contained in:
committed by
Ilpo Järvinen
parent
6de23f81a5
commit
85cd4fbf56
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user