]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
sh: Replace old style lock initializer
authorThomas Gleixner <tglx@linutronix.de>
Fri, 6 Nov 2009 22:42:05 +0000 (22:42 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 9 Nov 2009 01:47:40 +0000 (10:47 +0900)
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>
arch/sh/include/asm/rwsem.h

index 1987f3ea7f1b1422d8ae5ad02003d6f6c29a770a..06e2251a5e483ebfd57594f55a02cbe69bfd1b59 100644 (file)
@@ -41,7 +41,7 @@ struct rw_semaphore {
 #endif
 
 #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) \
          __RWSEM_DEP_MAP_INIT(name) }