dcc_tty: Build fixups
authorJohn Stultz <john.stultz@linaro.org>
Wed, 8 May 2013 23:06:16 +0000 (16:06 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 18 Oct 2013 02:39:59 +0000 (19:39 -0700)
Fix spinlock declaration and tty_insert/flip arguments.

Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/char/dcc_tty.c

index a787accdcb14b2556bcb59ea5693c1d04e198307..0a62d410286faf7d800719e8b8d3d7debc9e0eb6 100644 (file)
@@ -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);
                }
        }