--- config.make~	2003-09-28 18:02:42.000000000 +0300
+++ config.make	2005-03-14 22:52:07.204235736 +0200
@@ -34,7 +34,8 @@
 #
 # location of the kernel source directory
 #
-KERNEL_SOURCE = /usr/src/linux
+#KERNEL_SOURCE = /usr/src/linux                      # for kernel 2.4
+KERNEL_SOURCE = /lib/modules/`uname -r`/build       # for kernel 2.6
 
 #
 # kernel driver compile flags.
--- kernel/cbm_module.c~	2005-03-14 22:49:20.175627944 +0200
+++ kernel/cbm_module.c	2005-03-14 22:49:41.908324072 +0200
@@ -10,14 +10,14 @@
 
 #ifdef SAVE_RCSID
 static char *rcsid =
-    "@(#) $Id: cbm_module.c,v 1.26 2003/10/18 14:34:23 michael Exp $";
+    "@(#) $Id: cbm_module.c,v 1.28 2004/04/24 14:02:12 michael Exp $";
 #endif
 
 #include <linux/config.h>
 #include <linux/version.h>
 
 #ifdef CONFIG_MODVERSIONS
-# include <linux/modsetver.h>
+# /* include <linux/modsetver.h> */
 #endif
 #include <linux/module.h>
 
@@ -675,8 +675,13 @@
         }
         request_region(port, 3, NAME);
 #else
+
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+        pp = parport_find_number(lp);
+# else
         for(i = lp, pp = parport_enumerate(); pp && i; i--, pp = pp->next)
                 ;       /* nothing */
+# endif
 
         if(pp == NULL)
         {
