Commit bc53b1e2 authored by Oliver Neukum's avatar Oliver Neukum Committed by Ben Hutchings

xhci: refuse loading if nousb is used

commit 1eaf35e4 upstream.

The module should fail to load.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarGreg 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: default avatarBen Hutchings <ben@decadent.org.uk>
parent 9b6775a5
......@@ -4300,6 +4300,9 @@ static int __init xhci_hcd_init(void)
{
int retval;
if (usb_disabled())
return -ENODEV;
retval = xhci_register_pci();
if (retval < 0) {
printk(KERN_DEBUG "Problem registering PCI driver.");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment