mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
char: dcc_tty: Update for spinlock changes
There is no longer a SPIN_LOCK_UNLOCKED macro; replace it with __SPIN_LOCK_UNLOCKED so that lockdep can give the lock a name. Also include spinlock.h so that this compiles. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
parent
2a94e2ae76
commit
702722709c
1 changed files with 2 additions and 1 deletions
|
@ -21,12 +21,13 @@
|
|||
#include <linux/tty.h>
|
||||
#include <linux/tty_driver.h>
|
||||
#include <linux/tty_flip.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
MODULE_DESCRIPTION("DCC TTY Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION("1.0");
|
||||
|
||||
static spinlock_t g_dcc_tty_lock = SPIN_LOCK_UNLOCKED;
|
||||
static spinlock_t g_dcc_tty_lock = __SPIN_LOCK_UNLOCKED(g_dcc_tty_lock);
|
||||
static struct hrtimer g_dcc_timer;
|
||||
static char g_dcc_buffer[16];
|
||||
static int g_dcc_buffer_head;
|
||||
|
|
Loading…
Reference in a new issue