On Tue, May 11, 2010 at 10:10 AM, James <[email protected]> wrote:
>  I doesn't fix any problems but I think it is nicer code. :-)
> I don't think we want to call usb_detach_kernel_driver_np unless we claimed
> the device.

Actually, we want to call usb_detach_kernel_driver_np() if we *can't*
claim the device, because that usually means that the kernel usbhid
driver has claimed it already (and it needs to be detached).

If we still can't claim it after that, then it is usually a permissions problem.

-- 
- Charles Lepple

_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to