From dd49ce70d33df021033fac7c1d65834917870c77 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 25 Jul 2009 23:59:49 +0200 Subject: [PATCH] net: wan/cosa.c: Convert "mutex" to semaphore commit 25980a97fe30460a3734518509f9e73b721978a6 in tip. The usage of this "mutex" is non obvious and probably a completions in some places. Make it a semaphore. Signed-off-by: Thomas Gleixner Cc: David S. Miller Signed-off-by: Paul Gortmaker --- drivers/net/wan/cosa.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index f0bd70f..c346bec 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -575,7 +575,7 @@ static int cosa_probe(int base, int irq, int dma) /* Initialize the chardev data structures */ mutex_init(&chan->rlock); - init_MUTEX(&chan->wsem); + sema_init(&chan->wsem, 1); /* Register the network interface */ if (!(chan->netdev = alloc_hdlcdev(chan))) { -- 1.7.0.4