On Sat, May 2, 2009 at 8:37 AM, Robert P. J. Day <[email protected]>wrote:

>
>  i (vaguely) recall that the __setup() routine to define kernel
> boot-time parms was deprecated some time ago, but i don't remember
> what it was deprecated in favour of.  help?
>
> rday
> --
>

http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git&a=search&h=7b11f69fb5c475f521db79f5fa22104e15842671&st=commit&s=__setup

2nd item gave the apparent answer :

 [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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

Reply via email to