ext Jim wrote: > Hi, > > In function usb_register(), there is a comment of "NOTE: if you want > your driver to use the USB major number, you must call > usb_register_dev() to enable that functionality. This function no longer > takes care of that.". Does that mean that init() need to call > usb_register_dev(), not usb_register()? > > I am running usb-skeleton.c for an experiment on kernel 2.6, the > usb_skel_init() was invoked during insmod, but the usb_skel_init only > called the usb_register(), not usb_register_dev(). The skel_probe was > not called even when I plugged in a device to the usb port. The driver > was made for a major number = 180 (mknode /dev/skel0 c 180 0), but to > open /dev/skel0 was always an error of "No Such Device". Why the > usb_skel_init was running, but the device could not be opened? How can I > debug this problem? > > Thank you. > > Jim > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > linux-usb-devel@lists.sourceforge.net > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel > This note warns you to call usb_register_dev() instead of usb_register(); usb_register() and usb_register_dev() are usually called from init() functions.
Hope this helped! ;-) -- Best Regards, Felipe Balbi [EMAIL PROTECTED] OSMRC - INdT ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel