diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-02-26 15:55:30 -0600 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-04-15 14:21:14 -0500 |
commit | 3080253725eb7a1ba1cec08735c1476a3fd3c1c7 (patch) | |
tree | f39e9959efe8a58287a7f4f8073c87c2cfc46d0b /include | |
parent | a899994d442a262f084fc47ec80013ac5787296c (diff) |
dahdi: Expose dahdi devices in sysfs.
This exposes dahdi devices in sysfs and also exposes attributes that
will allow user space to control the registration order in spans. This
facilitates loading drivers out of order yet keeping consistent
span/channel numbering, which in turn will eventually allow the
blacklist for DAHDI drivers to be removed. The default behavior,
controlled with the auto_register module parameter on dahdi is to number
the spans / channels in order like is currently done. So this change
does not introduce any new behavior by default.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 3bf11f1..b05ed8d 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1395,6 +1395,10 @@ typedef u32 __bitwise pm_message_t; #endif /* 2.6.26 */ #endif /* 2.6.31 */ +#ifndef CONFIG_TRACING +#define trace_printk printk +#endif + #ifndef DEFINE_SPINLOCK #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED #endif |