
From: Thomas Gleixner <tglx@linutronix.de>

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>
---

 25-akpm/drivers/video/console/mdacon.c |    2 +-
 25-akpm/drivers/video/console/vgacon.c |    2 +-
 25-akpm/drivers/video/hgafb.c          |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/video/console/mdacon.c~lock-initializer-cleanup-video drivers/video/console/mdacon.c
--- 25/drivers/video/console/mdacon.c~lock-initializer-cleanup-video	2005-01-18 00:51:46.579577512 -0800
+++ 25-akpm/drivers/video/console/mdacon.c	2005-01-18 00:51:46.585576600 -0800
@@ -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 -puN drivers/video/console/vgacon.c~lock-initializer-cleanup-video drivers/video/console/vgacon.c
--- 25/drivers/video/console/vgacon.c~lock-initializer-cleanup-video	2005-01-18 00:51:46.580577360 -0800
+++ 25-akpm/drivers/video/console/vgacon.c	2005-01-18 00:52:10.536935440 -0800
@@ -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 -puN drivers/video/hgafb.c~lock-initializer-cleanup-video drivers/video/hgafb.c
--- 25/drivers/video/hgafb.c~lock-initializer-cleanup-video	2005-01-18 00:51:46.582577056 -0800
+++ 25-akpm/drivers/video/hgafb.c	2005-01-18 00:51:46.588576144 -0800
@@ -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 */
 
_
