diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2006-01-15 09:35:15 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2006-01-15 09:35:15 +0000 |
commit | 4f37f2dabb3c3ef9675c7e9b3980aa9da78e4754 (patch) | |
tree | ea590211702a9439179a47066485680d3569c442 /v4l/compat.h | |
parent | 903275d34c620a6056a40bbf9bcb9d56b15b43aa (diff) | |
download | mediapointer-dvb-s2-4f37f2dabb3c3ef9675c7e9b3980aa9da78e4754.tar.gz mediapointer-dvb-s2-4f37f2dabb3c3ef9675c7e9b3980aa9da78e4754.tar.bz2 |
V4L/DVB (3354e): bttv semaphore to mutex conversion
From: Ingo Molnar <mingo@elte.hu>
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
build-tested.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
kernel-sync
Diffstat (limited to 'v4l/compat.h')
-rw-r--r-- | v4l/compat.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index a35acc464..774afc8da 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -1,5 +1,5 @@ /* - * $Id: compat.h,v 1.43 2005/12/11 18:11:56 mchehab Exp $ + * $Id: compat.h,v 1.44 2006/01/15 09:35:16 mchehab Exp $ */ #ifndef _COMPAT_H @@ -270,6 +270,14 @@ static inline unsigned long vmalloc_to_pfn(void * vmalloc_addr) # define input_free_device(input_dev) kfree(input_dev) #endif +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15) +#define DEFINE_MUTEX(a) DECLARE_MUTEX(a) +#define mutex_lock_interruptible(a) down_interruptible(a) +#define mutex_unlock(a) up(a) +#define mutex_lock(a) down(a) +#define mutex_init(a) init_MUTEX(a) +#endif + #endif /* * Local variables: |