mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Implemented new timer interface for mini example since kernel 6.15.
This commit is contained in:
@@ -525,7 +525,11 @@ void __exit cleanup_mini_module(void)
|
||||
{
|
||||
printk(KERN_INFO PFX "Stopping...\n");
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
|
||||
timer_delete_sync(&timer);
|
||||
#else
|
||||
del_timer_sync(&timer);
|
||||
#endif
|
||||
|
||||
#if EXTERNAL_MEMORY
|
||||
kfree(domain1_pd);
|
||||
|
||||
Reference in New Issue
Block a user