On Mon, 21 Mar 2005, Nick Sillik wrote:

> An here's the code to add the destructor to the us_data:
> 
> void onetouch_connect_input(struct us_data *ss)
> {
>       struct usb_device *udev = ss->pusb_dev;
>       struct usb_onetouch *onetouch;
> 
>       ...
>         ss->extra_destructor = onetouch_release_input;
>         ss->extra = ss;
>       ...
> 
>       return;
> }
> 
> Something I've done seems wrong here. Once I have connected it it registers it
> as an input device, and detects it's a mass-storage drive. It however does not
> automount it like usual, and the system hangs on an insmod or when the device 
> is
>  unplugged.

That's because you specified US_PR_CBI instead of US_PR_DEVICE.

Alan Stern



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to