summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/planb.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/planb.h')
-rw-r--r--linux/drivers/media/video/planb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/planb.h b/linux/drivers/media/video/planb.h
index e21b5735c..944e4960a 100644
--- a/linux/drivers/media/video/planb.h
+++ b/linux/drivers/media/video/planb.h
@@ -174,7 +174,11 @@ struct planb {
int user;
unsigned int tab_size;
int maxlines;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
struct mutex lock;
+#else
+ struct semaphore lock;
+#endif
unsigned int irq; /* interrupt number */
volatile unsigned int intr_mask;
struct pci_dev *dev; /* Our PCI device */