|
@@ -954,8 +954,12 @@ void usb_buffer_unmap_sg(const struct usb_device *dev, int is_in,
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(usb_buffer_unmap_sg);
|
|
|
|
|
|
-/* format to disable USB on kernel command line is: nousb */
|
|
|
-__module_param_call("", nousb, param_set_bool, param_get_bool, &nousb, 0444);
|
|
|
+/* 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>
|