From b05d6da6f8cf97ceb9514639ed11d3bf0edc9173 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Tue, 20 Mar 2007 20:03:03 -0400 Subject: cx23885: fix semaphore / mutex compat for kernels 2.6.15 and earlier From: Michael Krufky Signed-off-by: Michael Krufky --- linux/drivers/media/video/cx23885/cx23885.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux/drivers/media/video/cx23885/cx23885.h') 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 +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) #include +#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; -- cgit v1.2.3