misdn: Fix lockdep warning
authorKarsten Keil <kkeil@suse.de>
Sat, 13 Dec 2008 05:21:57 +0000 (21:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Dec 2008 05:21:57 +0000 (21:21 -0800)
use correct dynamic spinlock init function.

Signed-off-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/tei.c

index 1a824e75f8fd9ffc2e52561c998be0ca1f490d03..5c43d19e7c11676716e32be9357452a5f4db8a8c 100644 (file)
@@ -1287,7 +1287,7 @@ create_teimanager(struct mISDNdevice *dev)
        if (!mgr)
                return -ENOMEM;
        INIT_LIST_HEAD(&mgr->layer2);
-       mgr->lock = __RW_LOCK_UNLOCKED(mgr->lock);
+       rwlock_init(&mgr->lock);
        skb_queue_head_init(&mgr->sendq);
        mgr->nextid = 1;
        mgr->lastid = MISDN_ID_NONE;