From 32cdd1cafca041021082a1386f5a5b51a7f18cbc Mon Sep 17 00:00:00 2001 From: Guillaume Knispel Date: Thu, 31 Jan 2013 18:47:40 +0100 Subject: remove ref to megrez and TAINT_CRAP xivo_tdm --- tdm/xivo_tdm.c | 10 ++++++++++ tdm/xivo_tdm_api.h | 10 +++++----- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'tdm') 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) -- cgit v1.2.3