diff --git a/4.15.2/LKMPG-4.15.2.org b/4.15.2/LKMPG-4.15.2.org index 32a5050..d47e723 100644 --- a/4.15.2/LKMPG-4.15.2.org +++ b/4.15.2/LKMPG-4.15.2.org @@ -369,7 +369,7 @@ module_param_array(myintarray, int, NULL, 0); /* not interested in count */ short myshortarray[4]; int count; -module_parm_array(myshortarray, short, &count, 0); /* put count into "count" variable */ +module_param_array(myshortarray, short, &count, 0); /* put count into "count" variable */ #+END_SRC A good use for this is to have the module variable's default values set, like an port or IO address. If the variables contain the default values, then perform autodetection (explained elsewhere). Otherwise, keep the current value. This will be made clear later on.