lkml.org 
[lkml]   [1999]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject/proc/bus/usb/000 will not work correctly when usb is compiled into kernel
Hi!

Here's patch to make it work. Basically you need to first
proc_usb_init(), because otherwise it will be unable to register buses
(/proc/bus/usb/000 will not appear).

Pavel

--- clean//drivers/usb/usb-core.c Wed Sep 8 20:41:58 1999
+++ linux/drivers/usb/usb-core.c Thu Sep 16 12:33:29 1999
@@ -31,6 +31,9 @@

int usb_init(void)
{
+#ifdef CONFIG_USB_PROC
+ proc_usb_init ();
+#endif
#ifndef CONFIG_USB_MODULE
# ifdef CONFIG_USB_UHCI
uhci_init();
@@ -68,9 +71,6 @@
# ifdef CONFIG_USB_SCSI
usb_scsi_init();
# endif
-#endif
-#ifdef CONFIG_USB_PROC
- proc_usb_init ();
#endif
return 0;
}
--
pavel@suse.cz
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.026 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site