mirror of
https://github.com/cilynx/rtl88x2bu
synced 2025-08-31 14:26:03 +00:00
fix: Switch to use timer_delete_sync
In Linux Kernel commit 8fa7292fee5c5240402371ea89ab285ec856c916 Thomas Gleixner replaces all usages of del_timer_sync to be timer_delete_sync. This has to be followed here.
This commit is contained in:
@@ -383,7 +383,11 @@ __inline static void _set_timer(_timer *ptimer, u32 delay_time)
|
||||
|
||||
__inline static void _cancel_timer(_timer *ptimer, u8 *bcancelled)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0))
|
||||
*bcancelled = timer_delete_sync(&ptimer->timer) == 1 ? 1 : 0;
|
||||
#else
|
||||
*bcancelled = del_timer_sync(&ptimer->timer) == 1 ? 1 : 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void _init_workitem(_workitem *pwork, void *pfunc, void *cntx)
|
||||
|
Reference in New Issue
Block a user