Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-01-20 16:15:50 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:15:50 -0800
commit98926f81d52a898c2385d6f5b884fa666cb0879e (patch)
treebbdb1172f555efd3ffdeca83c45595e92fc61450
parent00787a183038cec944ee8773859f7b96055203a0 (diff)
[PATCH] Lock initializer cleanup: Video
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/video/console/mdacon.c2
-rw-r--r--drivers/video/console/vgacon.c2
-rw-r--r--drivers/video/hgafb.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/console/mdacon.c b/drivers/video/console/mdacon.c
index c490b33d7804..be3d53596f8d 100644
--- a/drivers/video/console/mdacon.c
+++ b/drivers/video/console/mdacon.c
@@ -47,7 +47,7 @@
#include <asm/io.h>
#include <asm/vga.h>
-static spinlock_t mda_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(mda_lock);
/* description of the hardware layout */
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 9c3102212233..fb5d5943d8ac 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -53,7 +53,7 @@
#include <video/vga.h>
#include <asm/io.h>
-static spinlock_t vga_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(vga_lock);
static int cursor_size_lastfrom;
static int cursor_size_lastto;
static struct vgastate state;
diff --git a/drivers/video/hgafb.c b/drivers/video/hgafb.c
index d0d68d219480..c2a06ca2ea98 100644
--- a/drivers/video/hgafb.c
+++ b/drivers/video/hgafb.c
@@ -103,7 +103,7 @@ static char *hga_type_name;
/* Global locks */
-static spinlock_t hga_reg_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(hga_reg_lock);
/* Framebuffer driver structures */