> From: "Randy.Dunlap" <[EMAIL PROTECTED]>
> Date: Fri, 27 Sep 2002 22:45:45 -0700

> --- ./drivers/usb/core/usb.c.2539     Fri Sep 27 14:49:55 2002
> +++ ./drivers/usb/core/usb.c  Fri Sep 27 22:35:30 2002
> +int nousb;           /* Disable USB when built into kernel image */
> +                     /* Not honored on modular build */

>  static int __init usb_init(void)
>  {
> +     if (nousb) {
> +             info("USB support disabled\n");
> +             return 0;
> +     }
> +

>  static void __exit usb_exit(void)
>  {
> +     /* This will matter if shutdown/reboot does exitcalls. */
> +     if (nousb)
> +             return;
> +
>       remove_driver(&usb_generic_driver);

This is a great option for sufferers of IBM i1200 and i1300.
We did it a little different, by checking for "nousb" in all HCD
drivers. This way it's guaranteed not to produce any stray NULL
pointers. Randy's way is better, if it works.

-- Pete


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to