diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-01-23 15:14:15 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-01-27 12:30:36 +0100 |
commit | e41c8ab174f47ed5ed10a365482d0d7b0e352beb (patch) | |
tree | f62c14ac347efb069689f2733aa996fa871b2baa /arch | |
parent | 61bb46082775acd18c712607615a8b7dbeff7873 (diff) | |
download | op-kernel-dev-e41c8ab174f47ed5ed10a365482d0d7b0e352beb.zip op-kernel-dev-e41c8ab174f47ed5ed10a365482d0d7b0e352beb.tar.gz |
cris: Replace deprecated spinlock initialization
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/cris/arch-v32/kernel/smp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/kernel/smp.c b/arch/cris/arch-v32/kernel/smp.c index 84fed3b..4c9e3e1 100644 --- a/arch/cris/arch-v32/kernel/smp.c +++ b/arch/cris/arch-v32/kernel/smp.c @@ -26,7 +26,9 @@ #define FLUSH_ALL (void*)0xffffffff /* Vector of locks used for various atomic operations */ -spinlock_t cris_atomic_locks[] = { [0 ... LOCK_COUNT - 1] = SPIN_LOCK_UNLOCKED}; +spinlock_t cris_atomic_locks[] = { + [0 ... LOCK_COUNT - 1] = __SPIN_LOCK_UNLOCKED(cris_atomic_locks) +}; /* CPU masks */ cpumask_t phys_cpu_present_map = CPU_MASK_NONE; |