summaryrefslogtreecommitdiff
path: root/tdm/xivo_tdm.c
diff options
context:
space:
mode:
authorGuillaume Knispel <gknispel@avencall.com>2013-01-31 18:47:40 +0100
committerGuillaume Knispel <gknispel@avencall.com>2013-01-31 18:47:40 +0100
commit32cdd1cafca041021082a1386f5a5b51a7f18cbc (patch)
treed487990cab6b6dd4582d26debf32e8ef67f5c998 /tdm/xivo_tdm.c
parent4e3569ee7954248ba77174e760ba8311e32c49a3 (diff)
remove ref to megrez and TAINT_CRAP xivo_tdm
Diffstat (limited to 'tdm/xivo_tdm.c')
-rw-r--r--tdm/xivo_tdm.c10
1 files changed, 10 insertions, 0 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;