summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-si470x.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/radio/radio-si470x.c')
-rw-r--r--linux/drivers/media/radio/radio-si470x.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/linux/drivers/media/radio/radio-si470x.c b/linux/drivers/media/radio/radio-si470x.c
index b41eddd4f..55c1a9b7b 100644
--- a/linux/drivers/media/radio/radio-si470x.c
+++ b/linux/drivers/media/radio/radio-si470x.c
@@ -132,9 +132,7 @@
#include <linux/version.h>
#include "compat.h"
#include <linux/videodev2.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
#include <linux/mutex.h>
-#endif
#include <media/v4l2-common.h>
#include <media/rds.h>
#include <asm/unaligned.h>
@@ -463,11 +461,7 @@ struct si470x_device {
struct delayed_work work;
#endif
wait_queue_head_t read_queue;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16)
struct mutex lock; /* buffer locking */
-#else
- struct semaphore lock; /* buffer locking */
-#endif
unsigned char *buffer; /* size is always multiple of three */
unsigned int buf_size;
unsigned int rd_index;