[PATCH] simple mutex compat change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Trying this one again.  It's just the same mutex -> semaphore compat code as
in other drivers.
# HG changeset patch
# User Trent Piepho <xyzzy@xxxxxxxxxxxxx>
# Node ID 11b94a9ffc4d3997290f96bd996604d4790770b5
# Parent  9b7ee58c97f0b98c9f7b06fb2db49099307d6f81
Add some mutex -> semaphore backward compatability changes

From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>

Standard back compatability changes, for struct mutex added after 2.6.15
Done with #define mutex semaphore in these files, because it's less invasive.

Signed-off-by: Trent Piepho <xyzzy@xxxxxxxxxxxxx>

diff -r 9b7ee58c97f0 -r 11b94a9ffc4d linux/drivers/media/video/et61x251/et61x251.h
--- a/linux/drivers/media/video/et61x251/et61x251.h	Thu May 11 16:45:10 2006 -0700
+++ b/linux/drivers/media/video/et61x251/et61x251.h	Fri May 12 15:18:37 2006 -0700
@@ -34,7 +34,11 @@
 #include <linux/types.h>
 #include <linux/param.h>
 #include <linux/rwsem.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
 #include <linux/mutex.h>
+#else
+#define mutex semaphore
+#endif
 #include <linux/stddef.h>
 #include <linux/string.h>
 
diff -r 9b7ee58c97f0 -r 11b94a9ffc4d linux/drivers/media/video/zc0301/zc0301.h
--- a/linux/drivers/media/video/zc0301/zc0301.h	Thu May 11 16:45:10 2006 -0700
+++ b/linux/drivers/media/video/zc0301/zc0301.h	Fri May 12 15:18:37 2006 -0700
@@ -33,7 +33,11 @@
 #include <linux/wait.h>
 #include <linux/types.h>
 #include <linux/param.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
 #include <linux/mutex.h>
+#else
+#define mutex semaphore
+#endif
 #include <linux/rwsem.h>
 #include <linux/stddef.h>
 #include <linux/string.h>
_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux