summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/vino.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/vino.c')
-rw-r--r--linux/drivers/media/video/vino.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/video/vino.c b/linux/drivers/media/video/vino.c
index 01a4b9d3e..b867e7e8c 100644
--- a/linux/drivers/media/video/vino.c
+++ b/linux/drivers/media/video/vino.c
@@ -41,7 +41,10 @@
#include <linux/videodev.h>
#include <media/v4l2-common.h>
#include <linux/video_decoder.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
#include <linux/mutex.h>
+#endif
#include <asm/paccess.h>
#include <asm/io.h>
@@ -245,7 +248,11 @@ struct vino_framebuffer_queue {
struct vino_framebuffer *buffer[VINO_FRAMEBUFFER_COUNT_MAX];
spinlock_t queue_lock;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
struct mutex queue_mutex;
+#else
+ struct semaphore queue_mutex;
+#endif
wait_queue_head_t frame_wait_queue;
};
@@ -283,7 +290,12 @@ struct vino_channel_settings {
/* the driver is currently processing the queue */
int capturing;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
struct mutex mutex;
+#else
+ struct semaphore mutex;
+#endif
+
spinlock_t capture_lock;
unsigned int users;