mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
usb: make "nousb" a clear module parameter
It shouldn't matter how usbcore is compiled. As it is a subsystem, the correct way to use nousb should be usbcore.nousb Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
40d581489a
commit
097a9ea0e4
@ -49,12 +49,7 @@ const char *usbcore_name = "usbcore";
|
||||
|
||||
static bool nousb; /* Disable USB when built into kernel image */
|
||||
|
||||
/* To disable USB, kernel command line is 'nousb' not 'usbcore.nousb' */
|
||||
#ifdef MODULE
|
||||
module_param(nousb, bool, 0444);
|
||||
#else
|
||||
core_param(nousb, nousb, bool, 0444);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* for external read access to <nousb>
|
||||
|
Loading…
Reference in New Issue
Block a user