--- faketty-0.04/faketty.c 2005-10-01 17:14:16.000000000 +0200
+++ faketty-0.04-jd/faketty.c      2006-01-05 10:08:43.000000000 +0100
@@ -807,9 +805,16 @@ static struct input_handle *ftty_connect
                                MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + minor),
                                dev->dev, "ftty%d", minor);
 #else
-       class_device_create(input_class,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
+       class_device_create(&input_class,
+                               NULL,
                                MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + minor),
                                dev->dev, "ftty%d", minor);
+#else
+       class_device_create(input_class,
+                               MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + minor),
+                               dev->dev, "ftty%d", minor);
+#endif
 #endif


@@ -823,9 +828,14 @@ static void ftty_disconnect(struct input
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
        class_simple_device_remove(MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + evdev->minor));
 #else
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
+       class_device_destroy(&input_class,
+                               MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + evdev->minor));
+#else
        class_device_destroy(input_class,
                                MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + evdev->minor));
 #endif
+#endif
        devfs_remove("input/ftty%d", evdev->minor);
        evdev->exist = 0;
