summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-sf16fmr2.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/radio/radio-sf16fmr2.c')
-rw-r--r--linux/drivers/media/radio/radio-sf16fmr2.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/linux/drivers/media/radio/radio-sf16fmr2.c b/linux/drivers/media/radio/radio-sf16fmr2.c
index e321bd014..bb5ccf55d 100644
--- a/linux/drivers/media/radio/radio-sf16fmr2.c
+++ b/linux/drivers/media/radio/radio-sf16fmr2.c
@@ -26,6 +26,12 @@
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
#include <linux/mutex.h>
+static struct mutex lock;
+#else
+static struct semaphore lock;
+#endif
+
+#include <linux/version.h> /* for KERNEL_VERSION MACRO */
#define RADIO_VERSION KERNEL_VERSION(0,0,2)
static struct v4l2_queryctrl radio_qctrl[] = {
@@ -47,11 +53,6 @@ static struct v4l2_queryctrl radio_qctrl[] = {
}
};
-static struct mutex lock;
-#else
-static struct semaphore lock;
-#endif
-
#undef DEBUG
//#define DEBUG 1