Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PNP: Set up pnp_debug via module and not via boot param.

Cleanup only, no functional change (pnp.debug can be enabled
and disabled at runtime, but that's not a real enhancement).

This one depends on another PNP cleanup patch:
PNP: Compile all pnp built-in stuff in one module namespace

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Thomas Renninger and committed by
Len Brown
cdefba03 803711af

+1 -6
+1 -6
drivers/pnp/core.c
··· 218 218 int pnp_debug; 219 219 220 220 #if defined(CONFIG_PNP_DEBUG_MESSAGES) 221 - static int __init pnp_debug_setup(char *__unused) 222 - { 223 - pnp_debug = 1; 224 - return 1; 225 - } 226 - __setup("pnp.debug", pnp_debug_setup); 221 + module_param_named(debug, pnp_debug, int, 0644); 227 222 #endif