summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-zoltrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/radio/radio-zoltrix.c')
-rw-r--r--linux/drivers/media/radio/radio-zoltrix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/radio/radio-zoltrix.c b/linux/drivers/media/radio/radio-zoltrix.c
index d428514c7..e8363cf6b 100644
--- a/linux/drivers/media/radio/radio-zoltrix.c
+++ b/linux/drivers/media/radio/radio-zoltrix.c
@@ -49,7 +49,11 @@ struct zol_device {
unsigned long curfreq;
int muted;
unsigned int stereo;
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
struct mutex lock;
+#else
+ struct semaphore lock;
+#endif
};
static int zol_setvol(struct zol_device *dev, int vol)