linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / media / video / meye.h
index ea107cb..e8cd897 100644 (file)
@@ -36,6 +36,7 @@
 #define MEYE_DRIVER_VERSION __stringify(MEYE_DRIVER_MAJORVERSION) "." \
                            __stringify(MEYE_DRIVER_MINORVERSION)
 
+#include <linux/config.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/kfifo.h>
 
 /* private API definitions */
 #include <linux/meye.h>
-#include <linux/mutex.h>
-
 
 /* Enable jpg software correction */
 #define MEYE_JPEG_CORRECTION   1
@@ -302,7 +301,7 @@ struct meye {
                                        /* list of buffers */
        struct meye_grab_buffer grab_buffer[MEYE_MAX_BUFNBRS];
        int vma_use_count[MEYE_MAX_BUFNBRS]; /* mmap count */
-       struct mutex lock;              /* mutex for open/mmap... */
+       struct semaphore lock;          /* semaphore for open/mmap... */
        struct kfifo *grabq;            /* queue for buffers to be grabbed */
        spinlock_t grabq_lock;          /* lock protecting the queue */
        struct kfifo *doneq;            /* queue for grabbed buffers */