patch-2.3.29 linux/drivers/char/rocket.c

Next file: linux/drivers/char/rtc.c
Previous file: linux/drivers/char/radio-typhoon.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/drivers/char/rocket.c linux/drivers/char/rocket.c
@@ -42,16 +42,14 @@
 #include <linux/config.h>
 #include <linux/version.h>
 
-#if (defined(CONFIG_PCI) && (LINUX_VERSION_CODE >= 131072))
+#ifdef CONFIG_PCI
 #define ENABLE_PCI
 #endif
 
-#if (LINUX_VERSION_CODE > 66304)
 #define NEW_MODULES
 #ifdef LOCAL_ROCKET_H		/* We're building standalone */
 #define MODULE
 #endif
-#endif
 
 #ifdef NEW_MODULES
 #ifdef MODVERSIONS
@@ -200,13 +198,6 @@
 MODULE_PARM_DESC(support_low_speed, "0 means support 50 baud, 1 means support 460400 baud");	
 #endif
 
-/*
- * Provide backwards compatibility for kernels prior to 2.1.8.
- */
-#if (LINUX_VERSION_CODE < 0x20000)
-typedef dev_t kdev_t;
-#endif
-
 #if (LINUX_VERSION_CODE < 131336)
 int copy_from_user(void *to, const void *from_user, unsigned long len)
 {
@@ -1757,13 +1748,8 @@
 	}
 }
 
-#if (LINUX_VERSION_CODE > 66304)
 static int rp_write(struct tty_struct * tty, int from_user,
 		    const unsigned char *buf, int count)
-#else
-static int rp_write(struct tty_struct * tty, int from_user,
-		    unsigned char *buf, int count)
-#endif	
 {
 	struct r_port * info = (struct r_port *)tty->driver_data;
 	CHANNEL_t	*cp;

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