diff options
author | Guillaume Knispel <gknispel@avencall.com> | 2013-01-31 18:47:40 +0100 |
---|---|---|
committer | Guillaume Knispel <gknispel@avencall.com> | 2013-01-31 18:47:40 +0100 |
commit | 32cdd1cafca041021082a1386f5a5b51a7f18cbc (patch) | |
tree | d487990cab6b6dd4582d26debf32e8ef67f5c998 /tdm | |
parent | 4e3569ee7954248ba77174e760ba8311e32c49a3 (diff) |
remove ref to megrez and TAINT_CRAP xivo_tdm
Diffstat (limited to 'tdm')
-rw-r--r-- | tdm/xivo_tdm.c | 10 | ||||
-rw-r--r-- | tdm/xivo_tdm_api.h | 10 |
2 files changed, 15 insertions, 5 deletions
diff --git a/tdm/xivo_tdm.c b/tdm/xivo_tdm.c index f48366d..28cf9be 100644 --- a/tdm/xivo_tdm.c +++ b/tdm/xivo_tdm.c @@ -1500,10 +1500,20 @@ static enum hrtimer_restart debug_trace(struct hrtimer *timer) #endif /* DEBUGFS_MY_STUFF */ + +static inline void my_add_taint_module(struct module *mod, unsigned flag) +{ + add_taint(flag); + mod->taints |= (1U << flag); +} + + static int __init xivo_tdm_init(void) { int rc; + my_add_taint_module(THIS_MODULE, TAINT_CRAP); + #ifdef DEBUGFS_MY_STUFF spin_lock_init(&debug_lock); debug_index = -1; diff --git a/tdm/xivo_tdm_api.h b/tdm/xivo_tdm_api.h index fddc6d4..78626e5 100644 --- a/tdm/xivo_tdm_api.h +++ b/tdm/xivo_tdm_api.h @@ -18,13 +18,13 @@ #ifndef XIVO_TDM_API_H #define XIVO_TDM_API_H -/* XXX matches with ICP_HSSDRV_PORT_XHFC_MEGREZ_PROTO_XIVO_CONFIG */ -#define XHFC_MEGREZ_PROTO_XIVO_CONFIG (4) +/* XXX matches with ICP_HSSDRV_PORT_XHFC_XIOH_CONFIG */ +#define XHFC_XIOH_CONFIG (4) -/* XXX matches with ICP_HSSDRV_PORT_LE89316_MEGREZ_PROTO_XIVO_CONFIG */ -#define LE89316_MEGREZ_PROTO_XIVO_CONFIG (5) +/* XXX matches with ICP_HSSDRV_PORT_LE89316_XIOH_CONFIG */ +#define LE89316_XIOH_CONFIG (5) -#define LE89316_ASYNC_MEGREZ_PROTO_XIVO_CONFIG (6) +#define LE89316_ASYNC_XIOH_CONFIG (6) /* fixed: */ #define XIVO_TDM_TS_NUM (32) |