summaryrefslogtreecommitdiff
path: root/linux/include/media
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-02-19 19:01:09 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2007-02-19 19:01:09 -0800
commit13aac084f52613baf79f047bdac0b0decc2b37d2 (patch)
treeb5211790cf77de69d3425d824bc8ef138fe91494 /linux/include/media
parent613018f65de3818251f3a07868d89893bb3a0068 (diff)
downloadmediapointer-dvb-s2-13aac084f52613baf79f047bdac0b0decc2b37d2.tar.gz
mediapointer-dvb-s2-13aac084f52613baf79f047bdac0b0decc2b37d2.tar.bz2
compat: Fix compat stuff for usbvision and zr364xx
From: Trent Piepho <xyzzy@speakeasy.org> compat.h was missing from usbvideo-i2c.c and zr364xx.c zr364xx.c needed the struct semaphore -> struct mutex compat check. Added an old i2c id to compat.h. These could be added to the Hg copy of linux/i2c-id.h instead? There's just this one so far. zr364xx needs 2.6.15 because of vm_insert_page(), so add to versions.txt Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/include/media')
-rw-r--r--linux/include/media/v4l2-dev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h
index 1734898b4..8b2382b89 100644
--- a/linux/include/media/v4l2-dev.h
+++ b/linux/include/media/v4l2-dev.h
@@ -16,9 +16,11 @@
#include <linux/fs.h>
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#include <linux/device.h>
+#endif
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
#include <linux/mutex.h>
-#endif
+#else
+#include <asm/semaphore.h>
#endif
#include <linux/compiler.h> /* need __user */
#ifdef CONFIG_VIDEO_V4L1_COMPAT