From be80b76533c8db5af8ef3464c84d56c45767ed60 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 6 Feb 2006 13:59:37 -0200 Subject: sem2mutex: drivers/media/, #2 Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Kernel-sync from patch 3318b Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab --- linux/include/media/video-buf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/include/media/video-buf.h') diff --git a/linux/include/media/video-buf.h b/linux/include/media/video-buf.h index 6c1dc2777..dd2bb1800 100644 --- a/linux/include/media/video-buf.h +++ b/linux/include/media/video-buf.h @@ -178,7 +178,11 @@ struct videobuf_queue_ops { }; struct videobuf_queue { +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) + struct mutex lock; +#else struct semaphore lock; +#endif spinlock_t *irqlock; struct pci_dev *pci; -- cgit v1.2.3