提交 2bd7e20e 编写于 作者: T Thomas Gleixner 提交者: Linus Torvalds

ISDN: Spinlock initializer cleanup

Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9ea6e5d8
...@@ -443,7 +443,7 @@ ergo_inithardware(hysdn_card * card) ...@@ -443,7 +443,7 @@ ergo_inithardware(hysdn_card * card)
card->waitpofready = ergo_waitpofready; card->waitpofready = ergo_waitpofready;
card->set_errlog_state = ergo_set_errlog_state; card->set_errlog_state = ergo_set_errlog_state;
INIT_WORK(&card->irq_queue, ergo_irq_bh); INIT_WORK(&card->irq_queue, ergo_irq_bh);
card->hysdn_lock = SPIN_LOCK_UNLOCKED; spin_lock_init(&card->hysdn_lock);
return (0); return (0);
} /* ergo_inithardware */ } /* ergo_inithardware */
...@@ -1462,7 +1462,7 @@ isdnloop_initcard(char *id) ...@@ -1462,7 +1462,7 @@ isdnloop_initcard(char *id)
skb_queue_head_init(&card->bqueue[i]); skb_queue_head_init(&card->bqueue[i]);
} }
skb_queue_head_init(&card->dqueue); skb_queue_head_init(&card->dqueue);
card->isdnloop_lock = SPIN_LOCK_UNLOCKED; spin_lock_init(&card->isdnloop_lock);
card->next = cards; card->next = cards;
cards = card; cards = card;
if (!register_isdn(&card->interface)) { if (!register_isdn(&card->interface)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册