|
|
@ -1431,7 +1431,7 @@ static void release_cgpu(struct cgpu_info *cgpu) |
|
|
|
{ |
|
|
|
{ |
|
|
|
struct cg_usb_device *cgusb = cgpu->usbdev; |
|
|
|
struct cg_usb_device *cgusb = cgpu->usbdev; |
|
|
|
struct cgpu_info *lookcgpu; |
|
|
|
struct cgpu_info *lookcgpu; |
|
|
|
int i; |
|
|
|
int which_intinfo, i; |
|
|
|
|
|
|
|
|
|
|
|
applog(LOG_DEBUG, "USB release %s%i", |
|
|
|
applog(LOG_DEBUG, "USB release %s%i", |
|
|
|
cgpu->drv->name, cgpu->device_id); |
|
|
|
cgpu->drv->name, cgpu->device_id); |
|
|
@ -1464,8 +1464,9 @@ static void release_cgpu(struct cgpu_info *cgpu) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
which_intinfo = cgpu->usbdev->found->which_intinfo; |
|
|
|
_usb_uninit(cgpu); |
|
|
|
_usb_uninit(cgpu); |
|
|
|
|
|
|
|
if (which_intinfo == 0) |
|
|
|
cgminer_usb_unlock_bd(cgpu->drv, cgpu->usbinfo.bus_number, cgpu->usbinfo.device_address); |
|
|
|
cgminer_usb_unlock_bd(cgpu->drv, cgpu->usbinfo.bus_number, cgpu->usbinfo.device_address); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|