aboutsummaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2013-05-08 16:06:16 -0700
committerJohn Stultz <john.stultz@linaro.org>2013-07-02 14:49:54 -0700
commit31366efc298e297b72db4e83a1822aa3eff15e81 (patch)
tree809dc8d67d8f9ae6bca25c3cb46d00cb230478d9 /drivers/char
parentfe4a42e66e87c1cd3c195c14ef1f8bb22b02c7fb (diff)
dcc_tty: Build fixups
Fix spinlock declaration and tty_insert/flip arguments. Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/dcc_tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/dcc_tty.c b/drivers/char/dcc_tty.c
index a787accdcb1..0a62d410286 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;
+DEFINE_SPINLOCK(g_dcc_tty_lock);
static struct hrtimer g_dcc_timer;
static char g_dcc_buffer[16];
static int g_dcc_buffer_head;
@@ -80,8 +80,8 @@ static void dcc_poll_locked(void)
);
if (rch >= 0) {
ch = rch;
- tty_insert_flip_string(g_dcc_tty, &ch, 1);
- tty_flip_buffer_push(g_dcc_tty);
+ tty_insert_flip_string(g_dcc_tty->port, &ch, 1);
+ tty_flip_buffer_push(g_dcc_tty->port);
}
}