Commit 0bd3c502 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] parport_pc: don't mix module parameter styles

Somehow parport_pc.c ended up with mixed old-style and new-style module
parameters, but mixing them is not allowed.

Use module_param() instead of MODULE_PARM() -- cannot be mixed.
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d287a619
......@@ -3176,7 +3176,6 @@ static int __init parport_init_mode_setup(char *str)
#ifdef MODULE
static const char *irq[PARPORT_PC_MAX_PORTS];
static const char *dma[PARPORT_PC_MAX_PORTS];
static char *init_mode;
MODULE_PARM_DESC(io, "Base I/O address (SPP regs)");
module_param_array(io, int, NULL, 0);
......@@ -3192,8 +3191,9 @@ MODULE_PARM_DESC(verbose_probing, "Log chit-chat during initialisation");
module_param(verbose_probing, int, 0644);
#endif
#ifdef CONFIG_PCI
static char *init_mode;
MODULE_PARM_DESC(init_mode, "Initialise mode for VIA VT8231 port (spp, ps2, epp, ecp or ecpepp)");
MODULE_PARM(init_mode, "s");
module_param(init_mode, charp, 0);
#endif
static int __init parse_parport_params(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment