Commit 4b8284bd authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] Lock initializer cleanup: drivers/serial

Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 979495b6
...@@ -989,7 +989,7 @@ static struct uart_sunsu_port sunsu_ports[UART_NR]; ...@@ -989,7 +989,7 @@ static struct uart_sunsu_port sunsu_ports[UART_NR];
#ifdef CONFIG_SERIO #ifdef CONFIG_SERIO
static spinlock_t sunsu_serio_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(sunsu_serio_lock);
static int sunsu_serio_write(struct serio *serio, unsigned char ch) static int sunsu_serio_write(struct serio *serio, unsigned char ch)
{ {
......
...@@ -1293,7 +1293,7 @@ static void sunzilog_put_char(struct zilog_channel __iomem *channel, unsigned ch ...@@ -1293,7 +1293,7 @@ static void sunzilog_put_char(struct zilog_channel __iomem *channel, unsigned ch
#ifdef CONFIG_SERIO #ifdef CONFIG_SERIO
static spinlock_t sunzilog_serio_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(sunzilog_serio_lock);
static int sunzilog_serio_write(struct serio *serio, unsigned char ch) static int sunzilog_serio_write(struct serio *serio, unsigned char ch)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment