From e74a1af9619e3a527027bc5907fba64845954a4d Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Wed, 23 Nov 2005 06:40:54 +0000 Subject: 2.6.12 backwards compatability for dvbdev.c in dvb+v4l merged-trees. Signed-off-by: Michael Krufky --- v4l/compat.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'v4l') 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 /* -- cgit v1.2.3