]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SUNRPC]: Remove SPIN_LOCK_UNLOCKED
authorJiri Slaby <jirislaby@gmail.com>
Thu, 22 Nov 2007 11:40:22 +0000 (19:40 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Nov 2007 11:40:22 +0000 (19:40 +0800)
SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
net/sunrpc/xprt.c

index 282a9a2ec90c6e5f6c78b1c8b0e6cfe95e04461c..cd641c8634f044c6bb580c2d725bdb908e97849d 100644 (file)
@@ -62,7 +62,7 @@ static inline void    do_xprt_reserve(struct rpc_task *);
 static void    xprt_connect_status(struct rpc_task *task);
 static int      __xprt_get_cong(struct rpc_xprt *, struct rpc_task *);
 
-static spinlock_t xprt_list_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(xprt_list_lock);
 static LIST_HEAD(xprt_list);
 
 /*