examples/mini/mini.c
changeset 449 3caf8ff4d8a2
parent 446 8fede404c01f
child 452 d8ae13a5a910
equal deleted inserted replaced
448:e4b76dc7910c 449:3caf8ff4d8a2
   199 
   199 
   200 void __exit cleanup_mini_module(void)
   200 void __exit cleanup_mini_module(void)
   201 {
   201 {
   202     printk(KERN_INFO "=== Stopping Minimal EtherCAT environment... ===\n");
   202     printk(KERN_INFO "=== Stopping Minimal EtherCAT environment... ===\n");
   203 
   203 
   204     if (master) {
   204     del_timer_sync(&timer);
   205         del_timer_sync(&timer);
   205     printk(KERN_INFO "Releasing master...\n");
   206         printk(KERN_INFO "Deactivating master...\n");
   206     ecrt_release_master(master);
   207         ecrt_master_deactivate(master);
       
   208         ecrt_release_master(master);
       
   209     }
       
   210 
   207 
   211     printk(KERN_INFO "=== Minimal EtherCAT environment stopped. ===\n");
   208     printk(KERN_INFO "=== Minimal EtherCAT environment stopped. ===\n");
   212 }
   209 }
   213 
   210 
   214 /*****************************************************************************/
   211 /*****************************************************************************/