summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/vivi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/vivi.c b/linux/drivers/media/video/vivi.c
index df23a20cd..bd418e590 100644
--- a/linux/drivers/media/video/vivi.c
+++ b/linux/drivers/media/video/vivi.c
@@ -25,7 +25,11 @@
#include <linux/pci.h>
#include <linux/random.h>
#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
#include <linux/mutex.h>
+#else
+#include <asm/semaphore.h>
+#endif
#include "compat.h"
#include <linux/videodev2.h>
#include <linux/dma-mapping.h>
@@ -178,7 +182,11 @@ static LIST_HEAD(vivi_devlist);
struct vivi_dev {
struct list_head vivi_devlist;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
struct mutex lock;
+#else
+ struct semaphore lock;
+#endif
int users;