--- PortBunny050109-dev/scanner_ui/scanner_ui.c 2009-03-23 21:48:32.000000000 +0100 +++ PortBunny050109-dev-patched/scanner_ui/scanner_ui.c 2009-03-23 21:50:14.000000000 +0100 @@ -342,12 +342,16 @@ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12) - + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) + device_create(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny"); +#else #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25) device_create_drvdata(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny"); #else class_device_create(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny"); -#endif +#endif +#endif #else class_simple_device_add(portbunny_class, MKDEV(major, 0), NULL, "portbunny");