summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-10-25 11:42:25 +0800
committerAndy Green <andy.green@linaro.org>2011-10-25 11:42:25 +0800
commit0ffbf0329ea11c818e6df641331cd31de9643acf (patch)
tree6d0004c225be29fa0ac7ca95b8305bf8340d86d6
parenta34dbd3bf2fc5b88fd922812ca321c551de38b1c (diff)
Fix old-style spinlock initializationlinaro-androidization-tracking-2011-10-25-18-24-CST
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@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;