summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi_dynamic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/dahdi_dynamic.c')
-rw-r--r--drivers/dahdi/dahdi_dynamic.c9
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;