Skip to contentSkip to conversation

Patch: usbvision: Convert the usbvision->lock semaphore to the mutex API

DISCUSSION Dwaine Garden 1 participant 1 message Mar 18, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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

- up(&usbvision->lock);

+ mutex_unlock(&usbvision->lock);

+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)

+#include <linux/mutex.h>

+#endif

#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;

+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)

+ struct mutex               lock;

+#else

+ struct semaphore           lock;

+#endif

Do we really need to check the kernel version?   We just removed all the old susbvision->lock semaphores to the mutex API
Dwaine

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list