Messages in this thread Patch in this message |  | | Date | Sat, 2 Sep 2000 17:29:33 +0100 (BST) | From | John Levon <> | Subject | Rocketport driver "fix" |
| |
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/
|  |