dde_linux: cleanup module param handling

Instead of using a somewhat incomplete module_param_named() macro,
which will influence other drivers, patch the driver that requires
this treatment.

Fixes #2169
Fixes #2155
This commit is contained in:
Josef Söntgen
2016-10-27 19:00:13 +02:00
committed by Christian Helmuth
parent da68dcc63d
commit a3e11a60c0
4 changed files with 12 additions and 11 deletions

View File

@ -64,14 +64,7 @@ int try_module_get(struct module *);
*************************/
#define module_param(name, type, perm)
/*
* For our shenanigans to work we have to define charp (used by the
* iwlwifi module).
*/
#define charp char*
#define module_param_named(name, value, type, perm) \
type *module_param_ ## name = &value;
#define module_param_named(name, value, type, perm)
#define module_param_unsafe(name, type, perm)
#define module_param_named_unsafe(name, value, type, perm)

View File

@ -509,8 +509,6 @@ int isprint(int);
** linux/moduleparam.h **
*************************/
#define module_param(name, type, perm)
#define module_param_named(name, value, type, perm)
#define module_param_array_named(name, array, type, nump, perm)
#define module_param_string(name, string, len, perm)
#define core_param(name, var, type, perm)