[patch] drivers/usb/usb.c: auto loading of USB bus driver

Wakko Warner (wakko@animx.eu.org)
Mon, 20 Dec 1999 21:59:39 -0500


--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii

This would be my first attempt at this kinda thing.

Comments?

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

--/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="usb_2.3.33.diff"

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",

--/9DWx/yDrRhgMJTb--

- 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/