mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
rtl8192eu: Fix code for kernel 5.17 API change
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user