summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-10-20 17:53:05 -0700
committerJohn Stultz <john.stultz@linaro.org>2011-10-20 17:54:18 -0700
commit57504c056bfc5421b4256892f049a1bb6d9775e9 (patch)
tree2f9328da5b3c41f14e7316282112ad04819fad3d
parent1d1e56d14e6f7118557ee956b12dc7c57255bb73 (diff)
Fix dcc_tty spinlock initialization
Fix old-style spinlock initialization Signed-off-by: John Stultz <john.stultz@linaro.org>
-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;