From d2b50f08a0b4258a332fac30883882f8606704bf Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 25 Jul 2006 16:17:54 -0300 Subject: Included missing linux/version.h From: Mauro Carvalho Chehab Also fixed a bug on outkernel buinding and version <=2.6.15 Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/radio/radio-sf16fmr2.c | 11 ++++++----- 1 file 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 +static struct mutex lock; +#else +static struct semaphore lock; +#endif + +#include /* 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 -- cgit v1.2.3