lantiq: ltq-adsl: add kernel 5.10 compatiblity
[openwrt/staging/dedeckeh.git] / package / kernel / lantiq / ltq-adsl / patches / 150-linux_5.9.patch
1 --- a/src/common/drv_dsl_cpe_os_linux.c
2 +++ b/src/common/drv_dsl_cpe_os_linux.c
3 @@ -417,7 +417,11 @@ int DSL_DRV_ErrorToOS(DSL_Error_t nError
4 DSL_void_t* DSL_DRV_VMalloc(
5 DSL_DRV_size_t nSize)
6 {
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0)
8 return __vmalloc((unsigned long)nSize, GFP_KERNEL, PAGE_KERNEL);
9 +#else
10 + return __vmalloc((unsigned long)nSize, GFP_KERNEL);
11 +#endif
12 /* return vmalloc(nSize);*/
13 }
14