On Aug 11, 2008, Philippe Vouters wrote: > Based on Jeff's modifications, I built a new 536EP > driver code for kernel 2.6.26 whose source dated > 2008/08/12 you can download from > http://vouters.dyndns.org:8080/Intel/ > It builds just as fine under 2.6.25.11-97.fc9.i686. Hello, Philippe - Thanks for the update... I am getting a compiler error here running Arch Linux kernel 2.6.26.2, in coredrv.c lines 754 and 746: Error: 'proc_root_driver' undeclared. >From what I can tell here: http://tinyurl.com/55dajz It should be safe to pass NULL to create_proc_entry() and remove_proc_entry(), at least for 2.6.26? There was also an error on line 112 of softserial.c that looks like a typo: sizeof(tty_operations ops) should be: sizeof(struct tty_operations) The attached patch fixes these problems... Regards, - Jeff
diff -ur ../intel-536EP-2.56.76.0/coredrv/coredrv.c ./coredrv/coredrv.c --- ../intel-536EP-2.56.76.0/coredrv/coredrv.c 2008-08-11 17:37:42.000000000 -0500 +++ ./coredrv/coredrv.c 2008-08-12 07:13:40.000000000 -0500 @@ -741,6 +741,10 @@ return(persist_hamproc_read(page)); } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) +#define proc_root_driver NULL +#endif + int create_hamproc(void) { hamproc = create_proc_entry("ham", S_IFREG | S_IRUGO, proc_root_driver); diff -ur ../intel-536EP-2.56.76.0/coredrv/softserial.c ./coredrv/softserial.c --- ../intel-536EP-2.56.76.0/coredrv/softserial.c 2008-08-11 18:05:14.000000000 -0500 +++ ./coredrv/softserial.c 2008-08-12 06:59:49.000000000 -0500 @@ -109,7 +109,7 @@ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) static struct tty_operations ops; - memset(&ops,0,sizeof(tty_operations ops)); + memset(&ops,0,sizeof(struct tty_operations)); #endif memset(&G.softserial_tty_driver, 0, sizeof(struct tty_driver));