patch-2.4.25 linux-2.4.25/drivers/char/tipar.c

Next file: linux-2.4.25/drivers/char/tty_io.c
Previous file: linux-2.4.25/drivers/char/shwdt.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/char/tipar.c linux-2.4.25/drivers/char/tipar.c
@@ -71,9 +71,11 @@
 #define DRIVER_DESC    "Device driver for TI/PC parallel link cables"
 #define DRIVER_LICENSE "GPL"
 
-#define VERSION(ver,rel,seq) (((ver)<<16) | ((rel)<<8) | (seq))
-#if LINUX_VERSION_CODE < VERSION(2,5,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
 # define minor(x) MINOR(x)
+#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 # define need_resched() (current->need_resched)
 #endif
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)