--- thinkpad-wmi.c +++ thinkpad-wmi.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -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); }