Messages in this thread Patch in this message | | | Date | Mon, 20 Dec 1999 21:59:39 -0500 | From | Wakko Warner <> | Subject | [patch] drivers/usb/usb.c: auto loading of USB bus driver |
| |
This would be my first attempt at this kinda thing.
Comments?
-- Lab tests show that use of micro$oft causes cancer in lab animals diff -ruN 2.3.33/drivers/usb/usb.c 2.3.33_new/drivers/usb/usb.c --- 2.3.33/drivers/usb/usb.c Fri Nov 26 10:43:15 1999 +++ 2.3.33_new/drivers/usb/usb.c Mon Dec 20 21:58:08 1999 @@ -52,6 +52,10 @@ { struct list_head *tmp; +#ifdef CONFIG_KMOD + if (list_empty(&usb_bus_list)) + request_module("usb_adapter"); +#endif if (new_driver->fops != NULL) { if (usb_minors[new_driver->minor/16]) { printk(KERN_ERR "Error registering %s driver\n", | |