File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -948,7 +948,8 @@ static int gb_tty_init(void)
948
948
{
949
949
int retval = 0 ;
950
950
951
- gb_tty_driver = tty_alloc_driver (GB_NUM_MINORS , 0 );
951
+ gb_tty_driver = tty_alloc_driver (GB_NUM_MINORS , TTY_DRIVER_REAL_RAW |
952
+ TTY_DRIVER_DYNAMIC_DEV );
952
953
if (IS_ERR (gb_tty_driver )) {
953
954
pr_err ("Can not allocate tty driver\n" );
954
955
retval = - ENOMEM ;
@@ -961,7 +962,6 @@ static int gb_tty_init(void)
961
962
gb_tty_driver -> minor_start = 0 ;
962
963
gb_tty_driver -> type = TTY_DRIVER_TYPE_SERIAL ;
963
964
gb_tty_driver -> subtype = SERIAL_TYPE_NORMAL ;
964
- gb_tty_driver -> flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV ;
965
965
gb_tty_driver -> init_termios = tty_std_termios ;
966
966
gb_tty_driver -> init_termios .c_cflag = B9600 | CS8 |
967
967
CREAD | HUPCL | CLOCAL ;
You can’t perform that action at this time.
0 commit comments