diff --git a/src/clevo_wmi.c b/src/clevo_wmi.c index 6601827..ad24f60 100644 --- a/src/clevo_wmi.c +++ b/src/clevo_wmi.c @@ -117,11 +117,16 @@ static int clevo_wmi_probe(struct wmi_device *wdev, const void *dummy_context) return 0; } - +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0) static int clevo_wmi_remove(struct wmi_device *wdev) +#else +static void clevo_wmi_remove(struct wmi_device *wdev) +#endif { pr_debug("clevo_wmi driver remove\n"); +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0) return 0; +#endif } static void clevo_wmi_notify(struct wmi_device *wdev, union acpi_object *dummy)