rtl8192eu: Fix code for kernel 5.17 API change

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
This commit is contained in:
heitbaum
2022-02-10 07:19:24 +00:00
parent 744bbe5297
commit 5fb30bc593
5 changed files with 52 additions and 0 deletions

View File

@@ -872,10 +872,18 @@ u32 _rtw_down_sema(_sema *sema)
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
inline void thread_exit(_completion *comp)
#else
inline void kthread_thread_exit(_completion *comp)
#endif
{
#ifdef PLATFORM_LINUX
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
complete_and_exit(comp, 0);
#else
kthread_complete_and_exit(comp, 0);
#endif
#endif
}