diff options
Diffstat (limited to 'tp.patch')
-rw-r--r-- | tp.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tp.patch b/tp.patch new file mode 100644 index 000000000000..b09d3eed3975 --- /dev/null +++ b/tp.patch @@ -0,0 +1,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); + } |