diff --git a/drivers/pnp/core.c b/drivers/pnp/core.c index 88b3cde525968a2f6ee5e3b9be37e3177125a52f..9801918b2726ee4c7c320e0aac927c27700f34a9 100644 --- a/drivers/pnp/core.c +++ b/drivers/pnp/core.c @@ -218,10 +218,5 @@ subsys_initcall(pnp_init); int pnp_debug; #if defined(CONFIG_PNP_DEBUG_MESSAGES) -static int __init pnp_debug_setup(char *__unused) -{ - pnp_debug = 1; - return 1; -} -__setup("pnp.debug", pnp_debug_setup); +module_param_named(debug, pnp_debug, int, 0644); #endif