From: Aivils S. <ai...@un...> - 2005-11-15 09:13:28
|
On Ceturtdiena, 10. Novembris 2005 16:08, Frederick W. Koehler wrote: > Hi, > > =A0 Was testing compiling faketty-0.04 with fedora development kernel > (from kernel-2.6.14-1.1657_FC5.src.rpm) and found some problems with > class_device_create calls. =A0Attached is a small diff w/ the lines I > changed to produce a module that appears to work. =A0Apologies if this is > not formated in a standard way, etc. That is not Linus tree issue, but -git , fedora specific kernel patch,=20 related. Look into /usr/src/linux/include/linux/device.h Aivils patch untested. diff -ru faketty-0.04/faketty.c faketty-0.04.git/faketty.c =2D-- faketty-0.04/faketty.c 2005-10-01 18:14:16.000000000 +0300 +++ faketty-0.04.git/faketty.c 2005-11-15 11:02:28.000000000 +0200 @@ -807,7 +807,7 @@ MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + minor), dev->dev, "ftty%d", minor); #else =2D class_device_create(input_class, + class_device_create(input_class, NULL, MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + minor), dev->dev, "ftty%d", minor); #endif |