usbatm : modprobe & rmmod
castet.matthieu at free.fr
Tue Jan 25 12:49:44 EST 2005
Roman Kagan wrote:
> Hi Matthieu,
>>I have one remark for roman : in your clean method you clean things you
>>init in probe : it is a bit strange.
> Umm, how it's supposed to be? The cleanup function is exactly for that:
> it's called when the last reference to the driver instance is dropped,
> which may happen well after the USB disconnect.
Well I would done it in disconnect : the urb are initialized in probe,
so in the init function from the usb layer, so i would remove it in the
cleaning function from usb layer : disconnect.
For me cleanup is about things done in cxacru_heavy_init.
More information about the Usbatm