diff -r 96c5b8101ea3 v4l/compat.h --- a/v4l/compat.h Fri Aug 17 03:20:35 2007 -0300 +++ b/v4l/compat.h Sat Aug 18 09:13:24 2007 +0200 @@ -284,7 +284,7 @@ static inline int vm_insert_page(struct # define class_destroy(a) class_simple_destroy(a) #elif 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) -#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) +#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) # define device_create(a, b, c, d, e, f, g) class_device_create(a, NULL, c, b, d, e, f, g) # define device_destroy(a, b) class_device_destroy(a, b) #endif