Skip to content

Commit 49ddb69

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
tty: staging/greybus: pass tty_driver flags to tty_alloc_driver()
tty_alloc_driver() is supposed to receive tty driver flags. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Acked-by: Johan Hovold <[email protected]> Cc: David Lin <[email protected]> Cc: Alex Elder <[email protected]> Cc: [email protected] Cc: [email protected] Reviewed-by: Alex Elder <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 528f311 commit 49ddb69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/greybus/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,8 @@ static int gb_tty_init(void)
948948
{
949949
int retval = 0;
950950

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);
952953
if (IS_ERR(gb_tty_driver)) {
953954
pr_err("Can not allocate tty driver\n");
954955
retval = -ENOMEM;
@@ -961,7 +962,6 @@ static int gb_tty_init(void)
961962
gb_tty_driver->minor_start = 0;
962963
gb_tty_driver->type = TTY_DRIVER_TYPE_SERIAL;
963964
gb_tty_driver->subtype = SERIAL_TYPE_NORMAL;
964-
gb_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
965965
gb_tty_driver->init_termios = tty_std_termios;
966966
gb_tty_driver->init_termios.c_cflag = B9600 | CS8 |
967967
CREAD | HUPCL | CLOCAL;

0 commit comments

Comments
 (0)