forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/drivers/platform/x86/dell-smbios-wmi.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * WMI methods for use with dell-smbios
34 *
45 * Copyright (c) 2017 Dell Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
118
....@@ -147,7 +144,7 @@
147144 return ret;
148145 }
149146
150
-static int dell_smbios_wmi_probe(struct wmi_device *wdev)
147
+static int dell_smbios_wmi_probe(struct wmi_device *wdev, const void *context)
151148 {
152149 struct wmi_driver *wdriver =
153150 container_of(wdev->dev.driver, struct wmi_driver, driver);
....@@ -279,4 +276,4 @@
279276 wmi_driver_unregister(&dell_smbios_wmi_driver);
280277 }
281278
282
-MODULE_ALIAS("wmi:" DELL_WMI_SMBIOS_GUID);
279
+MODULE_DEVICE_TABLE(wmi, dell_smbios_wmi_id_table);