diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2006-07-15 09:31:19 -0300 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2006-07-15 09:31:19 -0300 |
commit | 8c40b0843444af46d530817a6670e111f9231a53 (patch) | |
tree | e46363e2cc1da6757c1ac2e78d0dfcd82543a188 /linux/drivers/media/video/et61x251 | |
parent | 38178c059c3bea8bf2c95115fb753b55319a37f6 (diff) | |
download | mediapointer-dvb-s2-8c40b0843444af46d530817a6670e111f9231a53.tar.gz mediapointer-dvb-s2-8c40b0843444af46d530817a6670e111f9231a53.tar.bz2 |
Add some mutex to semaphore backward compatability changes
From: Trent Piepho <xyzzy@speakeasy.org>
Standard back compatability changes, for struct mutex added after 2.6.15.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/et61x251')
-rw-r--r-- | linux/drivers/media/video/et61x251/et61x251.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/et61x251/et61x251.h b/linux/drivers/media/video/et61x251/et61x251.h index 3ac2f508e..c5ac67528 100644 --- a/linux/drivers/media/video/et61x251/et61x251.h +++ b/linux/drivers/media/video/et61x251/et61x251.h @@ -34,7 +34,9 @@ #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> +#endif #include <linux/stddef.h> #include <linux/string.h> @@ -162,7 +164,11 @@ struct et61x251_device { enum et61x251_dev_state state; u8 users; +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) struct mutex dev_mutex, fileop_mutex; +#else + struct semaphore dev_mutex, fileop_mutex; +#endif spinlock_t queue_lock; wait_queue_head_t open, wait_frame, wait_stream; }; |