]> err.no Git - linux-2.6/blobdiff - drivers/media/video/bttvp.h
V4L/DVB (3354e): bttv semaphore to mutex conversion
[linux-2.6] / drivers / media / video / bttvp.h
index dd00c20ab95efb54c605117a20b6ddc7784f87d5..9cb72f176f7da705e1f82d85e3e40fff912c9bf6 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/videodev.h>
 #include <linux/pci.h>
 #include <linux/input.h>
+#include <linux/mutex.h>
 #include <asm/scatterlist.h>
 #include <asm/io.h>
 
@@ -309,9 +310,9 @@ struct bttv {
 
        /* locking */
        spinlock_t s_lock;
-       struct semaphore lock;
+       struct mutex lock;
        int resources;
-       struct semaphore reslock;
+       struct mutex reslock;
 #ifdef VIDIOC_G_PRIORITY
        struct v4l2_prio_state prio;
 #endif