forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/platform/x86/wmi-bmof.c
....@@ -1,17 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * WMI embedded Binary MOF driver
34 *
45 * Copyright (c) 2015 Andrew Lutomirski
56 * Copyright (C) 2017 VMware, Inc. All Rights Reserved.
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2 as published
9
- * by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
157 */
168
179 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -54,7 +46,7 @@
5446 return count;
5547 }
5648
57
-static int wmi_bmof_probe(struct wmi_device *wdev)
49
+static int wmi_bmof_probe(struct wmi_device *wdev, const void *context)
5850 {
5951 struct bmof_priv *priv;
6052 int ret;
....@@ -119,7 +111,7 @@
119111
120112 module_wmi_driver(wmi_bmof_driver);
121113
122
-MODULE_ALIAS("wmi:" WMI_BMOF_GUID);
114
+MODULE_DEVICE_TABLE(wmi, wmi_bmof_id_table);
123115 MODULE_AUTHOR("Andrew Lutomirski <luto@kernel.org>");
124116 MODULE_DESCRIPTION("WMI embedded Binary MOF driver");
125117 MODULE_LICENSE("GPL");