]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/sbus/char/vfc_dev.c
[SPARC] Videopix Frame Grabber: Convert device_lock_sem to mutex
[mv-sheeva.git] / drivers / sbus / char / vfc_dev.c
index 9269f7fbd36364957f0cdc97a90357f4e987fd1f..e7a1642b2aa4c528baa0aa4f1bf85f6f970fe6ce 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/fs.h>
 #include <linux/delay.h>
 #include <linux/spinlock.h>
+#include <linux/mutex.h>
 #include <linux/mm.h>
 
 #include <asm/openprom.h>
@@ -54,12 +55,12 @@ static unsigned char saa9051_init_array[VFC_SAA9051_NR] = {
 
 void vfc_lock_device(struct vfc_dev *dev)
 {
-       down(&dev->device_lock_sem);
+       mutex_lock(&dev->device_lock_mtx);
 }
 
 void vfc_unlock_device(struct vfc_dev *dev)
 {
-       up(&dev->device_lock_sem);
+       mutex_unlock(&dev->device_lock_mtx);
 }