diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-11-21 21:31:06 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 12:59:58 -0500 |
commit | 785895ff1fedddd09576d2c600d90404fef6506c (patch) | |
tree | ef1a50c7efaebb8afdebedbbda48a3fb43f25df4 /drivers | |
parent | 96983d2d861bf94b7f70bc47ac3c5b289f519a2d (diff) |
USB: Don't use __module_param_call; use core_param.
Impact: cleanup
Found this when I changed args to __module_param_call. We now have
core_param for exactly this, but Greg assures me "nousb" is used as a
module parameter, so we need the #ifdef MODULE.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/usb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 44f2fc750b6d..51854c2bc912 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -954,8 +954,12 @@ void usb_buffer_unmap_sg(const struct usb_device *dev, int is_in, | |||
954 | } | 954 | } |
955 | EXPORT_SYMBOL_GPL(usb_buffer_unmap_sg); | 955 | EXPORT_SYMBOL_GPL(usb_buffer_unmap_sg); |
956 | 956 | ||
957 | /* format to disable USB on kernel command line is: nousb */ | 957 | /* To disable USB, kernel command line is 'nousb' not 'usbcore.nousb' */ |
958 | __module_param_call("", nousb, param_set_bool, param_get_bool, &nousb, 0444); | 958 | #ifdef MODULE |
959 | module_param(nousb, bool, 0444); | ||
960 | #else | ||
961 | core_param(nousb, nousb, bool, 0444); | ||
962 | #endif | ||
959 | 963 | ||
960 | /* | 964 | /* |
961 | * for external read access to <nousb> | 965 | * for external read access to <nousb> |