summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/xiaomi-wmi.c
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2024-04-02 17:30:56 +0300
committerHans de Goede <hdegoede@redhat.com>2024-04-08 18:45:35 +0300
commitc347fd4fe84ab831db8b4361977437b587526165 (patch)
tree080ce873f9a909d1892984f42c834265f7f7daaf /drivers/platform/x86/xiaomi-wmi.c
parent428a03523d70b951e04822a49952fb32f2b508a4 (diff)
downloadlinux-c347fd4fe84ab831db8b4361977437b587526165.tar.xz
platform/x86: wmi: Mark simple WMI drivers as legacy-free
The inspur_platform_profile driver and the xiaomi-wmi driver both meet the requirements for modern WMI drivers, as they both do not use the legacy GUID-based interface and can be safely instantiated multiple times. Mark them both as legacy-free using the no_singleton flag. Compile-tested only. Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20240402143059.8456-1-W_Armin@gmx.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/xiaomi-wmi.c')
-rw-r--r--drivers/platform/x86/xiaomi-wmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/xiaomi-wmi.c b/drivers/platform/x86/xiaomi-wmi.c
index 54a2546bb93b..1f5f108d87c0 100644
--- a/drivers/platform/x86/xiaomi-wmi.c
+++ b/drivers/platform/x86/xiaomi-wmi.c
@@ -83,6 +83,7 @@ static struct wmi_driver xiaomi_wmi_driver = {
.id_table = xiaomi_wmi_id_table,
.probe = xiaomi_wmi_probe,
.notify = xiaomi_wmi_notify,
+ .no_singleton = true,
};
module_wmi_driver(xiaomi_wmi_driver);