summaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/vlsi_ir.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <matthias.kaehlcke@gmail.com>2007-07-09 22:18:12 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-11 07:18:51 +0200
commitaa4291108f434a183207e645379414270118dccb (patch)
treec4ee6dbcb1225e065742070284ad0af1a5d07a5e /drivers/net/irda/vlsi_ir.h
parent[NET]: "wrong timeout value in sk_wait_data()": cleanups (diff)
downloadlinux-aa4291108f434a183207e645379414270118dccb.tar.xz
linux-aa4291108f434a183207e645379414270118dccb.zip
[IRDA]: use mutex instead of semaphore in VLSI 82C147 IrDA controller driver
The VLSI 82C147 IrDA controller driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/vlsi_ir.h')
-rw-r--r--drivers/net/irda/vlsi_ir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/vlsi_ir.h b/drivers/net/irda/vlsi_ir.h
index 2d3b773d8e35..ca12a6096419 100644
--- a/drivers/net/irda/vlsi_ir.h
+++ b/drivers/net/irda/vlsi_ir.h
@@ -728,7 +728,7 @@ typedef struct vlsi_irda_dev {
struct timeval last_rx;
spinlock_t lock;
- struct semaphore sem;
+ struct mutex mtx;
u8 resume_ok;
struct proc_dir_entry *proc_entry;