diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-08 11:05:37 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-08 11:05:37 -0200 |
commit | 6c16e60ebc542dfe803c0070aaf3e356185b521a (patch) | |
tree | 2aa7c6c70920c0f4a67a58a202f34f403df3a671 /linux/drivers/media/dvb/bt8xx/bt878.h | |
parent | 243c1d1fa0d09431bf84f02e4a20c002da7c08c7 (diff) | |
parent | 56a304929cac33ceb38bbb90f4bb30c9477f64d5 (diff) | |
download | mediapointer-dvb-s2-6c16e60ebc542dfe803c0070aaf3e356185b521a.tar.gz mediapointer-dvb-s2-6c16e60ebc542dfe803c0070aaf3e356185b521a.tar.bz2 |
Merged patch 3310 at tip
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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; |