git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AVR32: Spinlock initializer cleanup
[safe/jmp/linux-2.6]
/
arch
/
avr32
/
kernel
/
traps.c
diff --git
a/arch/avr32/kernel/traps.c
b/arch/avr32/kernel/traps.c
index
4de9edf
..
86d1075
100644
(file)
--- a/
arch/avr32/kernel/traps.c
+++ b/
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 */
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)
{