diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-11 09:55:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:49:55 -0500 |
commit | 4186ecf8ad16dd05759a09594de6a87e48759ba6 (patch) | |
tree | 3ee5292d9f4a36e3eb359b586289ec972bcbaf39 /drivers/usb/media/se401.h | |
parent | 35cce732d9d4d9af6b4ad4d26d8f8c0eddb573a2 (diff) |
[PATCH] USB: convert a bunch of USB semaphores to mutexes
the patch below converts a bunch of semaphores-used-as-mutex in the USB
code to mutexes
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/media/se401.h')
-rw-r--r-- | drivers/usb/media/se401.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/media/se401.h b/drivers/usb/media/se401.h index 2e5846f1eb20..e88a40d4c86a 100644 --- a/drivers/usb/media/se401.h +++ b/drivers/usb/media/se401.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <asm/uaccess.h> | 5 | #include <asm/uaccess.h> |
6 | #include <linux/videodev.h> | 6 | #include <linux/videodev.h> |
7 | #include <linux/smp_lock.h> | 7 | #include <linux/smp_lock.h> |
8 | #include <linux/mutex.h> | ||
8 | 9 | ||
9 | #define se401_DEBUG /* Turn on debug messages */ | 10 | #define se401_DEBUG /* Turn on debug messages */ |
10 | 11 | ||
@@ -189,7 +190,7 @@ struct usb_se401 { | |||
189 | int maxframesize; | 190 | int maxframesize; |
190 | int cframesize; /* current framesize */ | 191 | int cframesize; /* current framesize */ |
191 | 192 | ||
192 | struct semaphore lock; | 193 | struct mutex lock; |
193 | int user; /* user count for exclusive use */ | 194 | int user; /* user count for exclusive use */ |
194 | int removed; /* device disconnected */ | 195 | int removed; /* device disconnected */ |
195 | 196 | ||