summaryrefslogtreecommitdiff
path: root/drivers/char/dcc_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/dcc_tty.c')
-rw-r--r--drivers/char/dcc_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/dcc_tty.c b/drivers/char/dcc_tty.c
index a787accdcb1..eadc7307340 100644
--- a/drivers/char/dcc_tty.c
+++ b/drivers/char/dcc_tty.c
@@ -26,7 +26,7 @@ MODULE_DESCRIPTION("DCC TTY Driver");
MODULE_LICENSE("GPL");
MODULE_VERSION("1.0");
-static spinlock_t g_dcc_tty_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(g_dcc_tty_lock);
static struct hrtimer g_dcc_timer;
static char g_dcc_buffer[16];
static int g_dcc_buffer_head;