summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx23885/cx23885.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-03-20 20:03:03 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-03-20 20:03:03 -0400
commitb05d6da6f8cf97ceb9514639ed11d3bf0edc9173 (patch)
tree7d1cec7669f2515d1908b92654fbc7a2ff955809 /linux/drivers/media/video/cx23885/cx23885.h
parent6a4922d1190a3cd33375f2bc62c9c174358d3577 (diff)
downloadmediapointer-dvb-s2-b05d6da6f8cf97ceb9514639ed11d3bf0edc9173.tar.gz
mediapointer-dvb-s2-b05d6da6f8cf97ceb9514639ed11d3bf0edc9173.tar.bz2
cx23885: fix semaphore / mutex compat for kernels 2.6.15 and earlier
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/cx23885/cx23885.h')
-rw-r--r--linux/drivers/media/video/cx23885/cx23885.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885.h b/linux/drivers/media/video/cx23885/cx23885.h
index a3317819b..e04d8740d 100644
--- a/linux/drivers/media/video/cx23885/cx23885.h
+++ b/linux/drivers/media/video/cx23885/cx23885.h
@@ -37,7 +37,9 @@
#include "cx23885-reg.h"
#include <linux/version.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
#include <linux/mutex.h>
+#endif
#define CX23885_VERSION_CODE KERNEL_VERSION(0,0,1)
@@ -188,7 +190,11 @@ struct cx23885_dev {
struct cx23885_i2c i2c_bus[3];
int nr;
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
struct mutex lock;
+#else
+ struct semaphore lock;
+#endif
/* board details */
unsigned int board;