diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-15 15:39:55 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-15 15:39:55 -0400 |
commit | 56e6595b318ac3a5b15f9e9c8048a2937ad287be (patch) | |
tree | d3fc2525a4c351f5704b31bac9e5436177accb83 /linux/drivers/media/dvb/siano/smscoreapi.h | |
parent | dca6d129e2f6f45454f71a73fdc216c8832052d6 (diff) | |
download | mediapointer-dvb-s2-56e6595b318ac3a5b15f9e9c8048a2937ad287be.tar.gz mediapointer-dvb-s2-56e6595b318ac3a5b15f9e9c8048a2937ad287be.tar.bz2 |
sms1xxx: remove #if LINUX_VERSION_CODE checks
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smscoreapi.h')
-rw-r--r-- | linux/drivers/media/dvb/siano/smscoreapi.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.h b/linux/drivers/media/dvb/siano/smscoreapi.h index deeb4c2d7..b545ee0c1 100644 --- a/linux/drivers/media/dvb/siano/smscoreapi.h +++ b/linux/drivers/media/dvb/siano/smscoreapi.h @@ -34,7 +34,6 @@ #include "dvb_demux.h" #include "dvb_frontend.h" -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) #include <linux/mutex.h> typedef struct mutex kmutex_t; @@ -44,21 +43,6 @@ typedef struct mutex kmutex_t; #define kmutex_trylock(_p_) mutex_trylock(_p_) #define kmutex_unlock(_p_) mutex_unlock(_p_) -#else -#include <asm/semaphore.h> - -typedef struct semaphore kmutex_t; - -#define kmutex_init(_p_) init_MUTEX(_p_) -#define kmutex_lock(_p_) down(_p_) -#define kmutex_trylock(_p_) (!down_trylock(_p_)) -#define kmutex_unlock(_p_) up(_p_) - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) -void *kzalloc(size_t size, int flags); -#endif -#endif /* LINUX_VERSION */ - #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif |