]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Lock initializer cleanup: Video
authorThomas Gleixner <tglx@linutronix.de>
Fri, 21 Jan 2005 00:15:50 +0000 (16:15 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 21 Jan 2005 00:15:50 +0000 (16:15 -0800)
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>
drivers/video/console/mdacon.c
drivers/video/console/vgacon.c
drivers/video/hgafb.c

index c490b33d7804c6a31a602a8e19b8059e54eea219..be3d53596f8d326b3c2da1ecaa8d1c665bbc197a 100644 (file)
@@ -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 */
 
index 9c310221223318d378cb00e32fb446dff54d68ed..fb5d5943d8ac5ff39453f00be9ca23e82198e6e7 100644 (file)
@@ -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;
index d0d68d2194800e90868e9664f0c9b1b075913f41..c2a06ca2ea980e5579b9793ee4831d643db2d075 100644 (file)
@@ -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 */