Message ID | 20150823085253.D9178C40941@trevor.secretlab.ca |
---|---|
State | New |
Headers | show |
diff --git a/src/ftdi.c b/src/ftdi.c index 68489ea096be..0d043690aeca 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -548,7 +548,7 @@ int ftdi_usb_open_dev(struct ftdi_context *ftdi, libusb_device *dev) // Likely scenario is a static ftdi_sio kernel module. if (ftdi->module_detach_mode == AUTO_DETACH_SIO_MODULE) { - if (libusb_detach_kernel_driver(ftdi->usb_dev, ftdi->interface) !=0) + if (libusb_set_auto_detach_kernel_driver(ftdi->usb_dev, 1)) detach_errno = errno; }