diff options
-rw-r--r-- | linux/drivers/media/video/cx23885/cx23885.h | 6 |
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; |