Commit 98926f81 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] Lock initializer cleanup: Video

Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 00787a18
......@@ -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 */
......
......@@ -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;
......
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment