master/module.c
changeset 794 684dea874956
parent 792 3778920f61e4
child 806 ab8daaabbe48
equal deleted inserted replaced
793:3b297ff8284f 794:684dea874956
   575         goto out_release;
   575         goto out_release;
   576     }
   576     }
   577 
   577 
   578     up(&master->device_sem);
   578     up(&master->device_sem);
   579 
   579 
   580     if (!master->main_device.link_state) {
       
   581         EC_ERR("Link is DOWN.\n");
       
   582         goto out_module_put;
       
   583     }
       
   584 
       
   585     if (ec_master_enter_operation_mode(master)) {
   580     if (ec_master_enter_operation_mode(master)) {
   586         EC_ERR("Failed to enter OPERATION mode!\n");
   581         EC_ERR("Failed to enter OPERATION mode!\n");
   587         goto out_module_put;
   582         goto out_module_put;
   588     }
   583     }
   589 
   584