From: Thomas Gleixner Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner Signed-off-by: Andrew Morton --- 25-akpm/drivers/serial/sunsu.c | 2 +- 25-akpm/drivers/serial/sunzilog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/serial/sunsu.c~lock-initializer-cleanup-drivers-serial drivers/serial/sunsu.c --- 25/drivers/serial/sunsu.c~lock-initializer-cleanup-drivers-serial Wed Jan 12 16:55:09 2005 +++ 25-akpm/drivers/serial/sunsu.c Wed Jan 12 16:55:09 2005 @@ -989,7 +989,7 @@ static struct uart_sunsu_port sunsu_port #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 -puN drivers/serial/sunzilog.c~lock-initializer-cleanup-drivers-serial drivers/serial/sunzilog.c --- 25/drivers/serial/sunzilog.c~lock-initializer-cleanup-drivers-serial Wed Jan 12 16:55:09 2005 +++ 25-akpm/drivers/serial/sunzilog.c Wed Jan 12 16:55:09 2005 @@ -1293,7 +1293,7 @@ static void sunzilog_put_char(struct zil #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) { _