diff options
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx/dst_common.h')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dst_common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst_common.h b/linux/drivers/media/dvb/bt8xx/dst_common.h index 81557f38f..251c172e4 100644 --- a/linux/drivers/media/dvb/bt8xx/dst_common.h +++ b/linux/drivers/media/dvb/bt8xx/dst_common.h @@ -25,6 +25,10 @@ #include <linux/smp_lock.h> #include <linux/dvb/frontend.h> #include <linux/device.h> +#include "compat.h" +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) +#include <linux/mutex.h> +#endif #include "bt878.h" #include "dst_ca.h" @@ -121,7 +125,11 @@ struct dst_state { u8 vendor[8]; u8 board_info[8]; +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) + struct mutex dst_mutex; +#else struct semaphore dst_mutex; +#endif }; struct dst_types { |