summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bttvp.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2006-01-15 09:35:15 +0000
committerMauro Carvalho Chehab <devnull@localhost>2006-01-15 09:35:15 +0000
commit4f37f2dabb3c3ef9675c7e9b3980aa9da78e4754 (patch)
treeea590211702a9439179a47066485680d3569c442 /linux/drivers/media/video/bttvp.h
parent903275d34c620a6056a40bbf9bcb9d56b15b43aa (diff)
downloadmediapointer-dvb-s2-4f37f2dabb3c3ef9675c7e9b3980aa9da78e4754.tar.gz
mediapointer-dvb-s2-4f37f2dabb3c3ef9675c7e9b3980aa9da78e4754.tar.bz2
V4L/DVB (3354e): bttv semaphore to mutex conversion
From: Ingo Molnar <mingo@elte.hu> Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. build-tested. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync
Diffstat (limited to 'linux/drivers/media/video/bttvp.h')
-rw-r--r--linux/drivers/media/video/bttvp.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/linux/drivers/media/video/bttvp.h b/linux/drivers/media/video/bttvp.h
index 88f77caa4..5d92d713e 100644
--- a/linux/drivers/media/video/bttvp.h
+++ b/linux/drivers/media/video/bttvp.h
@@ -1,5 +1,5 @@
/*
- $Id: bttvp.h,v 1.31 2005/12/25 19:06:18 mkrufky Exp $
+ $Id: bttvp.h,v 1.32 2006/01/15 09:35:15 mchehab Exp $
bttv - Bt848 frame grabber driver
@@ -37,6 +37,9 @@
#include <linux/videodev.h>
#include <linux/pci.h>
#include <linux/input.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
+#include <linux/mutex.h>
+#endif
#include <asm/scatterlist.h>
#include <asm/io.h>
@@ -322,9 +325,17 @@ struct bttv {
/* locking */
spinlock_t s_lock;
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
struct semaphore lock;
+#else
+ struct mutex lock;
+#endif
int resources;
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
struct semaphore reslock;
+#else
+ struct mutex reslock;
+#endif
#ifdef VIDIOC_G_PRIORITY
struct v4l2_prio_state prio;
#endif