pcfclock/pcfclock-module_param.patch

13 lines
348 B
Diff

--- linux/pcfclock.c
+++ linux/pcfclock.c
@@ -400,8 +400,7 @@
static int parport_nr[PCFCLOCK_NO] = {[0 ... PCFCLOCK_NO - 1] = PCFCLOCK_PARPORT_UNSPEC };
static char *parport[PCFCLOCK_NO] = { NULL, };
-
-MODULE_PARM(parport, "1-" __MODULE_STRING(PCFCLOCK_NO) "s");
+module_param_array(parport,charp,NULL,0);
#ifndef MODULE
static int __init