AVR32: Spinlock initializer cleanup
authorThomas Gleixner <tglx@linutronix.de>
Sun, 29 Apr 2007 16:10:34 +0000 (16:10 +0000)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Wed, 9 May 2007 06:48:39 +0000 (08:48 +0200)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/kernel/traps.c
arch/avr32/mach-at32ap/clock.c

index 4de9edf..86d1075 100644 (file)
@@ -123,7 +123,7 @@ asmlinkage void do_address_exception(unsigned long ecr, struct pt_regs *regs)
 
 /* This way of handling undefined instructions is stolen from ARM */
 static LIST_HEAD(undef_hook);
-static spinlock_t undef_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(undef_lock);
 
 void register_undef_hook(struct undef_hook *hook)
 {
index 00c4354..0f8c89c 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "clock.h"
 
-static spinlock_t clk_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(clk_lock);
 
 struct clk *clk_get(struct device *dev, const char *id)
 {