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
- Lines: 14
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/char/tipar.c
- Orig date:
2003-06-13 07:51:33.000000000 -0700
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)