From 63e620ffbc3a0d33ef5b9ef55d660a7afd8b63f6 Mon Sep 17 00:00:00 2001 From: Jeff Buchbinder Date: Mon, 13 Nov 2017 07:55:51 -0500 Subject: [PATCH] Attempt to fix #16 --- module/tty0tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/tty0tty.c b/module/tty0tty.c index 23cb37c..f7c19d4 100644 --- a/module/tty0tty.c +++ b/module/tty0tty.c @@ -60,6 +60,7 @@ MODULE_PARM_DESC(pairs, "Number of pairs of devices to be created, maximum of 12 #define TTY0TTY_MAJOR 240 /* experimental range */ +#define TTY0TTY_MINOR 16 /* fake UART values */ //out @@ -652,6 +653,7 @@ static int __init tty0tty_init(void) tty0tty_tty_driver->name = "tnt"; /* no more devfs subsystem */ tty0tty_tty_driver->major = TTY0TTY_MAJOR; + tty0tty_tty_driver->minor_start = TTY0TTY_MINOR; tty0tty_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; tty0tty_tty_driver->subtype = SERIAL_TYPE_NORMAL; tty0tty_tty_driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW ; @@ -664,7 +666,6 @@ static int __init tty0tty_init(void) tty0tty_tty_driver->init_termios.c_ispeed = 38400; tty0tty_tty_driver->init_termios.c_ospeed = 38400; - tty_set_operations(tty0tty_tty_driver, &serial_ops); for(i=0;i<2*pairs;i++) -- libgit2 0.21.4