From: Jean-Daniel P. <jd...@di...> - 2006-01-05 10:09:50
|
by mistake I reversed the order of files in the previous post, here's the correct patch : -------------------------------------------------------------------------= - --- 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 + mino= r), dev->dev, "ftty%d", minor); #else - class_device_create(input_class, +#if LINUX_VERSION_CODE >=3D KERNEL_VERSION(2,6,15) + class_device_create(&input_class, + NULL, MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + mino= r), dev->dev, "ftty%d", minor); +#else + class_device_create(input_class, + MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + mino= r), + dev->dev, "ftty%d", minor); +#endif #endif =20 =20 @@ -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 + e= vdev->minor)); #else +#if LINUX_VERSION_CODE >=3D KERNEL_VERSION(2,6,15) + class_device_destroy(&input_class, + MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + evde= v->minor)); +#else class_device_destroy(input_class, MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + evde= v->minor)); #endif +#endif devfs_remove("input/ftty%d", evdev->minor); evdev->exist =3D 0; -------------------------------------------------------------------------= - --=20 Jean-Daniel Pauget T=E9l: +33 (0) 676 952 746 2, rue Andr=E9 PELCA 50580 Denneville-Plage France |