summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-maxiradio.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/radio/radio-maxiradio.c')
-rw-r--r--linux/drivers/media/radio/radio-maxiradio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/linux/drivers/media/radio/radio-maxiradio.c b/linux/drivers/media/radio/radio-maxiradio.c
index 2b83fa519..d9bfe3f32 100644
--- a/linux/drivers/media/radio/radio-maxiradio.c
+++ b/linux/drivers/media/radio/radio-maxiradio.c
@@ -37,10 +37,12 @@
#include <linux/sched.h>
#include <asm/io.h>
#include <asm/uaccess.h>
+#include "compat.h"
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
#include <linux/mutex.h>
+#endif
#include <linux/pci.h>
-#include "compat.h"
#include <linux/videodev.h>
/* version 0.75 Sun Feb 4 22:51:27 EET 2001 */
@@ -103,7 +105,11 @@ static struct radio_device
unsigned long freq;
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
struct mutex lock;
+#else
+ struct semaphore lock;
+#endif
} radio_unit = {0, 0, 0, 0, };