diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-02-26 18:51:49 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-02-26 18:51:49 +0000 |
commit | ae158b038ae61289b0bfcb0b744610e89f80ee2a (patch) | |
tree | b43bfad3a73d420658f94fb96fa88a492860d1e7 /drivers/dahdi/dahdi_dynamic.c | |
parent | 27e498e2e4913b4522b7f597c34faf00638562ee (diff) |
dahdi_dynamic: Changes to allow to compile against vanilla 2.6.9 kernel.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8140 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_dynamic.c')
-rw-r--r-- | drivers/dahdi/dahdi_dynamic.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/dahdi/dahdi_dynamic.c b/drivers/dahdi/dahdi_dynamic.c index 8fdf945..f914e21 100644 --- a/drivers/dahdi/dahdi_dynamic.c +++ b/drivers/dahdi/dahdi_dynamic.c @@ -113,10 +113,15 @@ struct dahdi_dynamic { struct list_head list; }; +#ifdef DEFINE_SPINLOCK static DEFINE_SPINLOCK(dspan_lock); -static LIST_HEAD(dspan_list); - static DEFINE_SPINLOCK(driver_lock); +#else +static spinlock_t dspan_lock = SPIN_LOCK_UNLOCKED; +static spinlock_t driver_lock = SPIN_LOCK_UNLOCKED; +#endif + +static LIST_HEAD(dspan_list); static LIST_HEAD(driver_list); static int debug = 0; |