Re: ehci-hcd: respect the "nousb" parameter
David Brownell <[email protected]> Wed, 23 Jan 2008 15:38:13 -0800
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday 23 January 2008, Chuck Ebbert wrote: > Make the EHCI host driver respect the "nousb" kernel option. > > Signed-off-by: Chuck Ebbert <[email protected]> You know, given my druthers we'd have the HCD registration check this, rather than updating every HCD's setup logic... Care to try a maximally generic fix instead? :) - Dave > --- > 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