mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 09:07:24 +08:00
Merged changes of examples/mini/mini.c -r858:859 to
examples/rtai/rtai_sample.c.
This commit is contained in:
@@ -216,9 +216,11 @@ int __init init_mod(void)
|
||||
out_stop_timer:
|
||||
stop_rt_timer();
|
||||
out_release_master:
|
||||
printk(KERN_ERR PFX "Releasing master...\n");
|
||||
ecrt_release_master(master);
|
||||
out_return:
|
||||
rt_sem_delete(&master_sem);
|
||||
printk(KERN_ERR PFX "Failed to load. Aborting.\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -226,14 +228,14 @@ int __init init_mod(void)
|
||||
|
||||
void __exit cleanup_mod(void)
|
||||
{
|
||||
printk(KERN_INFO PFX "Unloading...\n");
|
||||
printk(KERN_INFO PFX "Stopping...\n");
|
||||
|
||||
rt_task_delete(&task);
|
||||
stop_rt_timer();
|
||||
ecrt_release_master(master);
|
||||
rt_sem_delete(&master_sem);
|
||||
|
||||
printk(KERN_INFO PFX "Stopped.\n");
|
||||
printk(KERN_INFO PFX "Unloading.\n");
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user