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/b2c2/flexcop-common.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/b2c2/flexcop-common.h')
-rw-r--r-- | linux/drivers/media/dvb/b2c2/flexcop-common.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/b2c2/flexcop-common.h b/linux/drivers/media/dvb/b2c2/flexcop-common.h index 7d7e1613c..6162c04bd 100644 --- a/linux/drivers/media/dvb/b2c2/flexcop-common.h +++ b/linux/drivers/media/dvb/b2c2/flexcop-common.h @@ -10,6 +10,10 @@ #include <linux/config.h> #include <linux/pci.h> +#include "compat.h" +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) +#include <linux/mutex.h> +#endif #include "flexcop-reg.h" @@ -73,8 +77,11 @@ struct flexcop_device { int (*fe_sleep) (struct dvb_frontend *); struct i2c_adapter i2c_adap; - struct semaphore i2c_sem; - +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) + struct mutex i2c_mutex; +#else + struct semaphore i2c_mutex; +#endif struct module *owner; /* options and status */ |