alpha: Replace deprecated spinlock initialization
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jan 2011 14:10:51 +0000 (15:10 +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: Matt Turner <mattst88@gmail.com>
arch/alpha/include/asm/rwsem.h

index 1570c0b5433649e4bafeb6601bfa77aeee8d6a44..19c9cc7ed94b610e5b2022b0f60f3ecfe37971f6 100644 (file)
@@ -39,7 +39,7 @@ struct rw_semaphore {
 };
 
 #define __RWSEM_INITIALIZER(name) \
-       { RWSEM_UNLOCKED_VALUE, SPIN_LOCK_UNLOCKED, \
+       { RWSEM_UNLOCKED_VALUE, __SPIN_LOCK_UNLOCKED((name).wait_lock), \
        LIST_HEAD_INIT((name).wait_list) }
 
 #define DECLARE_RWSEM(name) \