summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/bt8xx/bt878.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-02-08 11:05:37 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-08 11:05:37 -0200
commit6c16e60ebc542dfe803c0070aaf3e356185b521a (patch)
tree2aa7c6c70920c0f4a67a58a202f34f403df3a671 /linux/drivers/media/dvb/bt8xx/bt878.h
parent243c1d1fa0d09431bf84f02e4a20c002da7c08c7 (diff)
parent56a304929cac33ceb38bbb90f4bb30c9477f64d5 (diff)
downloadmediapointer-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.h11
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;