diff options
author | Michael Krufky <devnull@localhost> | 2005-11-23 06:40:54 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-11-23 06:40:54 +0000 |
commit | e74a1af9619e3a527027bc5907fba64845954a4d (patch) | |
tree | 499f370db8200d8204000e1cc2900d7561a88256 /v4l | |
parent | 767fbfe0ea65ec79c4ed38b780bfbbb31be01857 (diff) | |
download | mediapointer-dvb-s2-e74a1af9619e3a527027bc5907fba64845954a4d.tar.gz mediapointer-dvb-s2-e74a1af9619e3a527027bc5907fba64845954a4d.tar.bz2 |
2.6.12 backwards compatability for dvbdev.c in dvb+v4l merged-trees.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index e0d4abfe5..bdfd753c5 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -1,5 +1,5 @@ /* - * $Id: compat.h,v 1.34 2005/11/23 05:26:43 mkrufky Exp $ + * $Id: compat.h,v 1.35 2005/11/23 06:40:54 mkrufky Exp $ */ #ifndef _COMPAT_H @@ -255,9 +255,16 @@ static inline unsigned long vmalloc_to_pfn(void * vmalloc_addr) #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13) +# define class_device_create(a, b, c, d, e, f, g, h) class_simple_device_add(a, c, d, e, f, g, h) +# define class_device_destroy(a, b) class_simple_device_remove(b) +# define class_create(a, b) class_simple_create(a, b) +# define class_destroy(a) class_simple_destroy(a) +#else #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15) # define class_device_create(a, b, c, d, e, f, g, h) class_device_create(a, c, d, e, f, g, h) #endif +#endif #endif /* |