Browse Source

sh: Replace old style lock initializer

SPIN_LOCK_UNLOCKED is deprecated. Use __SPIN_LOCK_UNLOCKED instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Thomas Gleixner 15 years ago
parent
commit
969e46a853
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/sh/include/asm/rwsem.h

+ 1 - 1
arch/sh/include/asm/rwsem.h

@@ -41,7 +41,7 @@ struct rw_semaphore {
 #endif
 #endif
 
 
 #define __RWSEM_INITIALIZER(name) \
 #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) \
 	  LIST_HEAD_INIT((name).wait_list) \
 	  __RWSEM_DEP_MAP_INIT(name) }
 	  __RWSEM_DEP_MAP_INIT(name) }