]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cris: Replace deprecated spinlock initialization
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jan 2011 14:14:15 +0000 (15:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jan 2011 11:30:36 +0000 (12:30 +0100)
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>
arch/cris/arch-v32/kernel/smp.c

index 84fed3b4b0799dd35991e57eaa22aca18767c6a3..4c9e3e1ba5d12ccb08424e6ad04ccda7341f576c 100644 (file)
@@ -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;