diff --git a/kernel_module/legion-laptop.c b/kernel_module/legion-laptop.c index 227588e..797a2b9 100644 --- a/kernel_module/legion-laptop.c +++ b/kernel_module/legion-laptop.c @@ -74,6 +74,7 @@ #include #include #include +#include MODULE_LICENSE("GPL"); MODULE_AUTHOR("johnfan"); @@ -6266,7 +6267,11 @@ MODULE_DEVICE_TABLE(acpi, legion_device_ids); static struct platform_driver legion_driver = { .probe = legion_add, +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0) .remove_new = legion_remove, +#else + .remove = legion_remove, +#endif .resume = legion_resume, .driver = { .name = "legion",