summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/arv.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/arv.c')
-rw-r--r--linux/drivers/media/video/arv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/video/arv.c b/linux/drivers/media/video/arv.c
index 479ca4b46..0cd7f1d5e 100644
--- a/linux/drivers/media/video/arv.c
+++ b/linux/drivers/media/video/arv.c
@@ -30,7 +30,10 @@
#include "compat.h"
#include <linux/videodev.h>
#include <media/v4l2-common.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
#include <linux/mutex.h>
+#endif
#include <asm/uaccess.h>
#include <asm/m32r.h>
@@ -116,7 +119,11 @@ struct ar_device {
int width, height;
int frame_bytes, line_bytes;
wait_queue_head_t wait;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
struct mutex lock;
+#else
+ struct semaphore lock;
+#endif
};
static int video_nr = -1; /* video device number (first free) */