xhci: refuse loading if nousb is used
authorOliver Neukum <oneukum@suse.com>
Thu, 3 Dec 2015 14:03:34 +0000 (15:03 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Feb 2016 10:34:04 +0000 (10:34 +0000)
commitbc53b1e234987f0f14a02969bf3ed348ec077c56
treeedb271a4c477ac5d8107006adb918fabdce5ce29
parent9b6775a50007e1ce56feb7c48b243a02912b576c
xhci: refuse loading if nousb is used

commit 1eaf35e4dd592c59041bc1ed3248c46326da1f5f upstream.

The module should fail to load.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2: xhci_hcd_init() registers the PCI driver, so
 check before doing that rather than at the end of the function]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci.c