Преглед на файлове

AVR32: Spinlock initializer cleanup

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Thomas Gleixner преди 18 години
родител
ревизия
e89b064a4f
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      arch/avr32/kernel/traps.c
  2. 1 1
      arch/avr32/mach-at32ap/clock.c

+ 1 - 1
arch/avr32/kernel/traps.c

@@ -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 */
 /* This way of handling undefined instructions is stolen from ARM */
 static LIST_HEAD(undef_hook);
 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)
 void register_undef_hook(struct undef_hook *hook)
 {
 {

+ 1 - 1
arch/avr32/mach-at32ap/clock.c

@@ -18,7 +18,7 @@
 
 
 #include "clock.h"
 #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)
 struct clk *clk_get(struct device *dev, const char *id)
 {
 {