aboutsummaryrefslogtreecommitdiff
path: root/at76_usb.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-05-01 20:01:07 -0400
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-05-02 11:22:18 +0200
commitc360795bda2df2260b2b8a459087c9e37ef17266 (patch)
treedbf971bc643dddbe1a41945905330612aa375eb9 /at76_usb.h
parentb74a15493e90d141947df9d8c6755788fa8ffb96 (diff)
[PATCH] Replace semaphores with mutexes
Semaphores are overkill for simple locking. Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'at76_usb.h')
-rw-r--r--at76_usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/at76_usb.h b/at76_usb.h
index f32bb61..34f1862 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -466,7 +466,7 @@ struct at76_priv {
__u8 bulk_out_endpointAddr; /* the address of the bulk out endpoint */
int open_count; /* number of times this port has been opened */
- struct semaphore sem; /* locks this structure */
+ struct mutex mtx; /* locks this structure */
/* work queues */
struct work_struct work_assoc_done;