[linux-dvb] Patch: usbvision: Convert the usbvision->lock semaphore to the mutex API

Dwaine Garden dwainegarden at rogers.com
Wed Mar 18 22:44:05 CET 2009

Looking at this patch.  I have a couple of stupid questions.

- up(&usbvision->lock);

+ mutex_unlock(&usbvision->lock);



+#include <linux/mutex.h>


#include <media/v4l2-common.h>

#include <media/tuner.h>

#include <linux/videodev2.h>

@@ -397,7 +400,11 @@ struct usb_usbvision {

unsigned char iface; /* Video interface number */

unsigned char ifaceAlt; /* Alt settings */

unsigned char Vin_Reg2_Preset;

- struct semaphore lock;


+ struct mutex               lock;


+ struct semaphore           lock;


Do we really need to check the kernel version?   We just removed all the old susbvision->lock semaphores to the mutex API
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20090318/e78255e7/attachment.html 

More information about the linux-dvb mailing list