/proc/bus/usb/000 will not work correctly when usb is compiled into kernel

Pavel Machek (pavel@bug.ucw.cz)
Thu, 16 Sep 1999 12:41:04 +0200


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/