Commit 63e620ffbc3a0d33ef5b9ef55d660a7afd8b63f6
1 parent
8290538d
Attempt to fix #16
Showing
1 changed file
with
2 additions
and
1 deletions
module/tty0tty.c
| ... | ... | @@ -60,6 +60,7 @@ MODULE_PARM_DESC(pairs, "Number of pairs of devices to be created, maximum of 12 |
| 60 | 60 | |
| 61 | 61 | |
| 62 | 62 | #define TTY0TTY_MAJOR 240 /* experimental range */ |
| 63 | +#define TTY0TTY_MINOR 16 | |
| 63 | 64 | |
| 64 | 65 | /* fake UART values */ |
| 65 | 66 | //out |
| ... | ... | @@ -652,6 +653,7 @@ static int __init tty0tty_init(void) |
| 652 | 653 | tty0tty_tty_driver->name = "tnt"; |
| 653 | 654 | /* no more devfs subsystem */ |
| 654 | 655 | tty0tty_tty_driver->major = TTY0TTY_MAJOR; |
| 656 | + tty0tty_tty_driver->minor_start = TTY0TTY_MINOR; | |
| 655 | 657 | tty0tty_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; |
| 656 | 658 | tty0tty_tty_driver->subtype = SERIAL_TYPE_NORMAL; |
| 657 | 659 | tty0tty_tty_driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW ; |
| ... | ... | @@ -664,7 +666,6 @@ static int __init tty0tty_init(void) |
| 664 | 666 | tty0tty_tty_driver->init_termios.c_ispeed = 38400; |
| 665 | 667 | tty0tty_tty_driver->init_termios.c_ospeed = 38400; |
| 666 | 668 | |
| 667 | - | |
| 668 | 669 | tty_set_operations(tty0tty_tty_driver, &serial_ops); |
| 669 | 670 | |
| 670 | 671 | for(i=0;i<2*pairs;i++) | ... | ... |