]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/tipc/config.c
[PATCH] spin/rwlock init cleanups
[net-next-2.6.git] / net / tipc / config.c
index 3ec502fac8c34b29a0ed66253341e35dfb60a83c..285e1bc2d8808502f53e952eed76a1dd72308534 100644 (file)
@@ -63,7 +63,7 @@ struct manager {
 
 static struct manager mng = { 0};
 
-static spinlock_t config_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(config_lock);
 
 static const void *req_tlv_area;       /* request message TLV area */
 static int req_tlv_space;              /* request message TLV area size */