ehci-hcd: respect the "nousb" parameter
Chuck Ebbert <[email protected]> Wed, 23 Jan 2008 18:19:10 -0500
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Organization | Red Hat |
| Message-ID | <[email protected]> |
Make the EHCI host driver respect the "nousb" kernel option. Signed-off-by: Chuck Ebbert <[email protected]> --- drivers/usb/host/ehci-hcd.c | 3 +++ 1 file changed, 3 insertions(+) --- linux-2.6.23.noarch.orig/drivers/usb/host/ehci-hcd.c +++ linux-2.6.23.noarch/drivers/usb/host/ehci-hcd.c @@ -973,6 +973,9 @@ static int __init ehci_hcd_init(void) { int retval = 0; + if (usb_disabled()) + return -ENODEV; + pr_debug("%s: block sizes: qh %Zd qtd %Zd itd %Zd sitd %Zd\n", hcd_name, sizeof(struct ehci_qh), sizeof(struct ehci_qtd), ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel