summarylogtreecommitdiffstats
path: root/tp.patch
blob: b09d3eed39756e4643e3e4b1c2371416adeacb6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- thinkpad-wmi.c
+++ thinkpad-wmi.c
@@ -31,6 +31,7 @@
 #include <linux/device.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
+#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/seq_file.h>
@@ -1297,7 +1298,11 @@
 	return 0;
 }
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
+static int thinkpad_wmi_probe(struct wmi_device *wdev, const void *context)
+#else
 static int thinkpad_wmi_probe(struct wmi_device *wdev)
+#endif
 {
 	return thinkpad_wmi_add(wdev);
 }