Browse Source

Reattach the kernel driver on linux on usb_uninit.

nfactor-troky
ckolivas 11 years ago
parent
commit
39c2e662a7
  1. 3
      usbutils.c

3
usbutils.c

@ -1273,6 +1273,9 @@ static void _usb_uninit(struct cgpu_info *cgpu) @@ -1273,6 +1273,9 @@ static void _usb_uninit(struct cgpu_info *cgpu)
libusb_release_interface(cgpu->usbdev->handle,
THISIF(cgpu->usbdev->found, ifinfo));
}
#ifdef LINUX
libusb_attach_kernel_driver(cgpu->usbdev->handle, THISIF(cgpu->usbdev->found, ifinfo));
#endif
cg_wlock(&cgusb_fd_lock);
libusb_close(cgpu->usbdev->handle);
cgpu->usbdev->handle = NULL;

Loading…
Cancel
Save