Rocketport driver "fix"

From: John Levon (levonj5@cs.man.ac.uk)
Date: Sat Sep 02 2000 - 11:29:33 EST


This is a stupid and probably wrong patch to rocket.c

Against test6 but clean on test8pre1

Tytso, this wasn't on sourceforge either

Someone on #kernelnewbies needed this for several rocketports

thanks
john

--- drivers/char/rocket.c Mon Jun 19 21:25:06 2000
+++ drivers/char/rocket.c.new Sat Sep 2 17:24:41 2000
@@ -2221,7 +2221,11 @@
          */
         memset(&rocket_driver, 0, sizeof(struct tty_driver));
         rocket_driver.magic = TTY_DRIVER_MAGIC;
+#ifdef CONFIG_DEVFS_FS
+ rocket_driver.name = "ttyR%d";
+#else
         rocket_driver.name = "ttyR";
+#endif
         rocket_driver.major = TTY_ROCKET_MAJOR;
         rocket_driver.minor_start = 0;
         rocket_driver.num = MAX_RP_PORTS;
@@ -2263,7 +2267,11 @@
          * the minor number and the subtype code.
          */
         callout_driver = rocket_driver;
+#ifdef CONFIG_DEVFS_FS
+ callout_driver.name = "cur%d";
+#else
         callout_driver.name = "cur";
+#endif
         callout_driver.major = CUA_ROCKET_MAJOR;
         callout_driver.minor_start = 0;
         callout_driver.subtype = SERIAL_TYPE_CALLOUT;
 
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:13 EST