summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-maestro.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/radio/radio-maestro.c')
-rw-r--r--linux/drivers/media/radio/radio-maestro.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/linux/drivers/media/radio/radio-maestro.c b/linux/drivers/media/radio/radio-maestro.c
index d93357579..dfa1e6ded 100644
--- a/linux/drivers/media/radio/radio-maestro.c
+++ b/linux/drivers/media/radio/radio-maestro.c
@@ -23,10 +23,12 @@
#include <linux/sched.h>
#include <asm/io.h>
#include <asm/uaccess.h>
-#include <linux/mutex.h>
#include <linux/pci.h>
#include "compat.h"
#include <linux/videodev.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
+#include <linux/mutex.h>
+#endif
#define DRIVER_VERSION "0.05"
@@ -106,7 +108,11 @@ struct radio_device {
muted, /* VIDEO_AUDIO_MUTE */
stereo, /* VIDEO_TUNER_STEREO_ON */
tuned; /* signal strength (0 or 0xffff) */
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
struct mutex lock;
+#else
+ struct semaphore lock;
+#endif
};
static u32 radio_bits_get(struct radio_device *dev)