summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-sf16fmr2.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-07-25 16:17:54 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-07-25 16:17:54 -0300
commitd2b50f08a0b4258a332fac30883882f8606704bf (patch)
tree3ea2f2a91b35f059f058266a0bd534370bbc772a /linux/drivers/media/radio/radio-sf16fmr2.c
parent573b76e1d73d2f08b38772912c3056d609d59ed4 (diff)
downloadmediapointer-dvb-s2-d2b50f08a0b4258a332fac30883882f8606704bf.tar.gz
mediapointer-dvb-s2-d2b50f08a0b4258a332fac30883882f8606704bf.tar.bz2
Included missing linux/version.h
From: Mauro Carvalho Chehab <mchehab@infradead.org> Also fixed a bug on outkernel buinding and version <=2.6.15 Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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