mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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) <jirislaby@kernel.org> Acked-by: Johan Hovold <johan@kernel.org> Cc: David Lin <dtwlin@gmail.com> Cc: Alex Elder <elder@kernel.org> Cc: greybus-dev@lists.linaro.org Cc: linux-staging@lists.linux.dev Reviewed-by: Alex Elder <elder@riscstar.com> Link: https://lore.kernel.org/r/20250317070046.24386-23-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
528f31191e
commit
49ddb69cf6
|
|
@ -948,7 +948,8 @@ static int gb_tty_init(void)
|
|||
{
|
||||
int retval = 0;
|
||||
|
||||
gb_tty_driver = tty_alloc_driver(GB_NUM_MINORS, 0);
|
||||
gb_tty_driver = tty_alloc_driver(GB_NUM_MINORS, TTY_DRIVER_REAL_RAW |
|
||||
TTY_DRIVER_DYNAMIC_DEV);
|
||||
if (IS_ERR(gb_tty_driver)) {
|
||||
pr_err("Can not allocate tty driver\n");
|
||||
retval = -ENOMEM;
|
||||
|
|
@ -961,7 +962,6 @@ static int gb_tty_init(void)
|
|||
gb_tty_driver->minor_start = 0;
|
||||
gb_tty_driver->type = TTY_DRIVER_TYPE_SERIAL;
|
||||
gb_tty_driver->subtype = SERIAL_TYPE_NORMAL;
|
||||
gb_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
|
||||
gb_tty_driver->init_termios = tty_std_termios;
|
||||
gb_tty_driver->init_termios.c_cflag = B9600 | CS8 |
|
||||
CREAD | HUPCL | CLOCAL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user