On Wed, Jun 12, 2002 at 09:29:47AM -0700, Tom Rini wrote:
> On Wed, Jun 12, 2002 at 12:02:52AM +0200, Jeroen Vreeken wrote:
> > Is it possible to add some printk() calls in the probe function to
> > determine where it goes wrong?
[snip]
> And the prink I inserted at the top of the function never gets called.

... which is because se401_probe is __devinit (which turns into __init,
since CONFIG_HOTPLUG=n, and __init turns into '' when in a module).
Here's the lightly tested patch (for 2.4 and 2.5).

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

===== drivers/usb/se401.c 1.6 vs edited =====
--- 1.6/drivers/usb/se401.c     Thu May  2 08:48:30 2002
+++ edited/drivers/usb/se401.c  Wed Jun 12 09:34:00 2002
@@ -1494,7 +1494,7 @@
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
 static void* se401_probe(struct usb_device *dev, unsigned int ifnum)
 #else
-static void* __devinit se401_probe(struct usb_device *dev, unsigned int ifnum,
+static void* se401_probe(struct usb_device *dev, unsigned int ifnum,
        const struct usb_device_id *id)
 #endif
 {

_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to