Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-01-20 16:24:43 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:24:43 -0800
commit979495b6887d14daad44a1b8f18cefd91007b43b (patch)
treed2e0638b6a47866d315f55b7eeece58706238517
parent4a95772dbb2a5041a04833389ad9a794b82b8a1a (diff)
[PATCH] Lock initializer cleanup: character devices
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/char/lcd.c2
-rw-r--r--drivers/char/s3c2410-rtc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/lcd.c b/drivers/char/lcd.c
index ea9e0cbe1cbc..cf01a720eb2e 100644
--- a/drivers/char/lcd.c
+++ b/drivers/char/lcd.c
@@ -33,7 +33,7 @@
#include "lcd.h"
-static spinlock_t lcd_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(lcd_lock);
static int lcd_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg);
diff --git a/drivers/char/s3c2410-rtc.c b/drivers/char/s3c2410-rtc.c
index 687d9fab2155..b953eaa20de0 100644
--- a/drivers/char/s3c2410-rtc.c
+++ b/drivers/char/s3c2410-rtc.c
@@ -48,7 +48,7 @@ static int s3c2410_rtc_alarmno = NO_IRQ;
static int s3c2410_rtc_tickno = NO_IRQ;
static int s3c2410_rtc_freq = 1;
-static spinlock_t s3c2410_rtc_pie_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(s3c2410_rtc_pie_lock);
/* IRQ Handlers */