master/fsm_master.c
changeset 2027 ac35f4d38a31
parent 2020 47db5df5c7b3
child 2028 55854f070c4a
equal deleted inserted replaced
2026:68c1c31522a2 2027:ac35f4d38a31
  1225 
  1225 
  1226     ec_fsm_master_restart(fsm);
  1226     ec_fsm_master_restart(fsm);
  1227 }
  1227 }
  1228 
  1228 
  1229 /*****************************************************************************/
  1229 /*****************************************************************************/
       
  1230 
       
  1231 /** called by kref_put if the request's refcount becomes zero.
       
  1232  *
       
  1233  */
       
  1234 void ec_master_sdo_request_release(struct kref *ref)
       
  1235 {
       
  1236     ec_master_sdo_request_t *request = container_of(ref, ec_master_sdo_request_t, refcount);
       
  1237     EC_SLAVE_DBG(request->slave, 1, "Releasing request %p.\n",request);
       
  1238     ec_sdo_request_clear(&request->req);
       
  1239     kfree(request);
       
  1240 }