ide-core: remove conditional compiling with MODULE in ide-core.c
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 16 lines · Denis Cheng
use module_init/module_exit to replace the original cond-compiling, these macros were well designed to deal module/built-in compiling.
the original
__setupwith null string was invalid and not executed,__setup("", ide_setup);however, with the current
module_parammechanics, module parameters also can be input on the kernel command line, with this style:ide-core.options="ide=nodma hdd=cdrom idebus=..."
so
Documentation/kernel-parameters.txtalso updated.---
a/Documentation/kernel-parameters.txt(quoted diff) +0
-1- ide= [HW] (E)IDE subsystem
Review
Quoted 10 lines
(quoted diff) +2
-8- Format: ide=nodma or ide=doubler or ide=reverse - See Documentation/ide.txt. - - ide?= [HW] (E)IDE subsystem - Format: ide?=noprobe or chipset specific parameters. - See Documentation/ide.txt. - - idebus= [HW] (E)IDE subsystem - VLB/PCI bus speed + ide-core.options= [HW] (E)IDE subsystem + Format: ide-core.options="ide=nodma hdd=cdrom idebus=..."
IMO you should use separate options for things like nodma while you're at it.
¢¢