diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-09-24 22:44:53 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-09-24 22:44:53 +0000 |
commit | 136185314551006bd4e03e359537678b4ab5c5ac (patch) | |
tree | eaba3cdebac7179a46a49b0c58a5beb26962d894 /drivers/dahdi/dahdi_dynamic.c | |
parent | 0e0506b6f312affc011e52e9ae6079355103cf04 (diff) |
Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h
The check for DEFINE_SPINLOCK was spread throughout the source tree. If
not defined we can just define it in inlucde/dahdi/kernel.h. Now
include/dahdi/kernel.h is the only place that references
SPIN_LOCK_UNLOCKED (which breaks lockdep checking if DEFINE_SPINLOCK is
otherwise defined in the kernel).
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Review: https://reviewboard.asterisk.org/r/940/
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9411 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_dynamic.c')
-rw-r--r-- | drivers/dahdi/dahdi_dynamic.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/dahdi/dahdi_dynamic.c b/drivers/dahdi/dahdi_dynamic.c index 579b4e2..1a1d84b 100644 --- a/drivers/dahdi/dahdi_dynamic.c +++ b/drivers/dahdi/dahdi_dynamic.c @@ -113,13 +113,8 @@ struct dahdi_dynamic { struct list_head list; }; -#ifdef DEFINE_SPINLOCK static DEFINE_SPINLOCK(dspan_lock); 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); |