Index: zaptel.c =================================================================== --- zaptel.c (revision 839) +++ zaptel.c (working copy) @@ -157,6 +157,15 @@ /* udev necessary data structures. Yeah! */ #ifdef CONFIG_ZAP_UDEV + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) +#define CLASS_DEV_CREATE(class, devt, device, name) \ + class_device_create(class, NULL, devt, device, name) +#else +#define CLASS_DEV_CREATE(class, devt, device, name) \ + class_device_create(class, devt, device, name) +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) static struct class *zap_class = NULL; #else @@ -166,8 +175,10 @@ #define class_device_create class_simple_device_add #define class_device_destroy(a, b) class_simple_device_remove(b) #endif -#endif +#endif /* CONFIG_ZAP_UDEV */ + + /* There is a table like this in the PPP driver, too */ static int deftaps = 64;