{
int i;
+ /* force unlink all urbs */
+ usbdux_ai_stop(usbduxsub_tmp, 1);
+ usbdux_ao_stop(usbduxsub_tmp, 1);
+ usbdux_pwm_stop(usbduxsub_tmp, 1);
+
if (usbduxsub_tmp->urbIn) {
- /* force unlink all urbs */
- usbdux_ai_stop(usbduxsub_tmp, 1);
for (i = 0; i < usbduxsub_tmp->numOfInBuffers; i++) {
kfree(usbduxsub_tmp->urbIn[i]->transfer_buffer);
usbduxsub_tmp->urbIn[i]->transfer_buffer = NULL;
usbduxsub_tmp->urbIn = NULL;
}
if (usbduxsub_tmp->urbOut) {
- /* force unlink all urbs */
- usbdux_ao_stop(usbduxsub_tmp, 1);
for (i = 0; i < usbduxsub_tmp->numOfOutBuffers; i++) {
if (usbduxsub_tmp->urbOut[i]->transfer_buffer) {
kfree(usbduxsub_tmp->
usbduxsub_tmp->urbOut = NULL;
}
if (usbduxsub_tmp->urbPwm) {
- /* force unlink urb */
- usbdux_pwm_stop(usbduxsub_tmp, 1);
kfree(usbduxsub_tmp->urbPwm->transfer_buffer);
usbduxsub_tmp->urbPwm->transfer_buffer = NULL;
usb_free_urb(usbduxsub_tmp->urbPwm);
if (!devpriv)
return;
- /* stop any running commands */
- usbdux_ai_stop(devpriv, devpriv->ai_cmd_running);
- usbdux_ao_stop(devpriv, devpriv->ao_cmd_running);
-
usb_set_intfdata(intf, NULL);
down(&devpriv->sem);