Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-01-20 16:25:01 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:25:01 -0800
commit4b8284bde61a7e10809f2174791a482ec009cec0 (patch)
tree74af153f2cf0c3e218c156a6d00c3e16e70ee88c
parent979495b6887d14daad44a1b8f18cefd91007b43b (diff)
[PATCH] Lock initializer cleanup: drivers/serial
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/serial/sunsu.c2
-rw-r--r--drivers/serial/sunzilog.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/sunsu.c b/drivers/serial/sunsu.c
index ff4c3420158a..c8fce5974586 100644
--- a/drivers/serial/sunsu.c
+++ b/drivers/serial/sunsu.c
@@ -989,7 +989,7 @@ static struct uart_sunsu_port sunsu_ports[UART_NR];
#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)
{
diff --git a/drivers/serial/sunzilog.c b/drivers/serial/sunzilog.c
index 09add5f1e9f8..abf20dc56183 100644
--- a/drivers/serial/sunzilog.c
+++ b/drivers/serial/sunzilog.c
@@ -1293,7 +1293,7 @@ static void sunzilog_put_char(struct zilog_channel __iomem *channel, unsigned ch
#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)
{