diff options
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx/bt878.h')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/bt878.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/bt878.h b/linux/drivers/media/dvb/bt8xx/bt878.h index 9faf93770..af93f78ee 100644 --- a/linux/drivers/media/dvb/bt8xx/bt878.h +++ b/linux/drivers/media/dvb/bt8xx/bt878.h @@ -25,6 +25,11 @@ #include <linux/pci.h> #include <linux/sched.h> #include <linux/spinlock.h> +#include "compat.h" +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) +#include <linux/mutex.h> +#endif + #include "bt848.h" #include "bttv.h" @@ -108,7 +113,11 @@ struct cards { extern int bt878_num; struct bt878 { - struct semaphore gpio_lock; +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) + struct mutex gpio_lock; +#else + struct semaphore gpio_lock; +#endif unsigned int nr; unsigned int bttv_nr; struct i2c_adapter *adapter; |