FX2 based devices supported by fx2lafw that have the standard Cypress VID/PID will be grabbed by the "usbtest" Linux kernel driver per default on most systems.
Currently users have to "rmmod usbtest" before they can use fx2lafw, and/or they have to manually blacklist the driver, which is quite cumbersome.
Using libusb_detach_kernel_driver() like we already do in other drivers should remove the need for these manual fixes and make the life of users a lot simpler.
Thanks, merged in 39e4517759d391e5572e81d9796d4d8c6892d25e, with a follow-up fix to prevent a segfault though.
Tested on two devices here, works fine now.