summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/sn9c102/sn9c102.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/sn9c102/sn9c102.h')
-rw-r--r--linux/drivers/media/video/sn9c102/sn9c102.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/sn9c102/sn9c102.h b/linux/drivers/media/video/sn9c102/sn9c102.h
index 3f644c63f..a6a793d35 100644
--- a/linux/drivers/media/video/sn9c102/sn9c102.h
+++ b/linux/drivers/media/video/sn9c102/sn9c102.h
@@ -34,7 +34,9 @@
#include <linux/types.h>
#include <linux/param.h>
#include <linux/rwsem.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
#include <linux/mutex.h>
+#endif
#include <linux/string.h>
#include <linux/stddef.h>
@@ -146,7 +148,11 @@ struct sn9c102_device {
enum sn9c102_dev_state state;
u8 users;
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
struct mutex dev_mutex, fileop_mutex;
+#else
+ struct semaphore dev_mutex, fileop_mutex;
+#endif
spinlock_t queue_lock;
wait_queue_head_t open, wait_frame, wait_stream;
};