]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] USB: replace __setup("nousb") with __module_param_call
authorPete Zaitcev <zaitcev@redhat.com>
Tue, 20 Dec 2005 22:15:04 +0000 (14:15 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2006 21:51:44 +0000 (13:51 -0800)
commit9fc5c0df1dfcdddeaac626b177221ff765004c9a
tree218cbb17aeff69689121f294ac7ef513267b158a
parent0c1cb110a5139da1c1733196aef7bf03753110af
[PATCH] USB: replace __setup("nousb") with __module_param_call

Fedora users complain that passing "nousbstorage" to the installer causes
the rest of the USB support to disappear. The installer uses kernel command
line as a way to pass options through Syslinux. The problem stems from the
use of strncmp() in obsolete_checksetup().

I used __module_param_call() instead of module_param because I wanted to
preserve the old syntax in grub.conf, and it's the only macro which allows
to remove the prefix.

The fix is tested to accept the option "nousb" correctly now.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/usb.c