aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ath6kl/os
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-10-30 11:06:57 +0200
committerThomas Gleixner <tglx@linutronix.de>2010-10-30 12:12:50 +0200
commit45f4d0243525b6bc747c946937ced437b135a84d (patch)
tree02849b0719997d5017763fe8de44a007124ac3c1 /drivers/staging/ath6kl/os
parentjbd2: Convert jbd2_slab_create_sem to mutex (diff)
downloadlinux-dev-45f4d0243525b6bc747c946937ced437b135a84d.tar.xz
linux-dev-45f4d0243525b6bc747c946937ced437b135a84d.zip
staging: Final semaphore cleanup
Fixup the last remaining users of DECLARE_MUTEX and init_MUTEX. Scripted conversion, resulting code is binary equivalent. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de> LKML-Reference: <20100907125057.278833764@linutronix.de>
Diffstat (limited to 'drivers/staging/ath6kl/os')
-rw-r--r--drivers/staging/ath6kl/os/linux/ar6000_raw_if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c b/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c
index c196098f0859..6b8eeea475cf 100644
--- a/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c
+++ b/drivers/staging/ath6kl/os/linux/ar6000_raw_if.c
@@ -198,8 +198,8 @@ int ar6000_htc_raw_open(AR_SOFTC_T *ar)
for (streamID = HTC_RAW_STREAM_0; streamID < HTC_RAW_STREAM_NUM_MAX; streamID++) {
/* Initialize the data structures */
- init_MUTEX(&arRaw->raw_htc_read_sem[streamID]);
- init_MUTEX(&arRaw->raw_htc_write_sem[streamID]);
+ sema_init(&arRaw->raw_htc_read_sem[streamID], 1);
+ sema_init(&arRaw->raw_htc_write_sem[streamID], 1);
init_waitqueue_head(&arRaw->raw_htc_read_queue[streamID]);
init_waitqueue_head(&arRaw->raw_htc_write_queue[streamID]);