diff options
| author | Shell <[email protected]> | 2022-12-20 17:49:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-20 17:49:37 +0800 |
| commit | e8504c7cf1d03c07608e2197eaef728a6aecde7a (patch) | |
| tree | 744bbacef2efbd8afbf04cc63e4d287b38ebcc65 /components/drivers/tty | |
| parent | f0ef8ada33833942684a6280314160de8c355302 (diff) | |
[smart/aarch64] code sync (#6750)
* [smart/aarch64] sync aarch64
Diffstat (limited to 'components/drivers/tty')
| -rw-r--r-- | components/drivers/tty/pty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/drivers/tty/pty.c b/components/drivers/tty/pty.c index b3e6e7519a..34b366f399 100644 --- a/components/drivers/tty/pty.c +++ b/components/drivers/tty/pty.c @@ -308,7 +308,7 @@ static int ptmx_register(void) level = rt_hw_interrupt_disable(); RT_ASSERT(ptm_drv->init_flag == TTY_INIT_FLAG_NONE); - + device = &(ptm_drv->parent); device->type = RT_Device_Class_Char; @@ -348,7 +348,6 @@ static int ptmx_register(void) } tty_initstack(ptm_drv->head); - rt_spin_lock_init(&ptm_drv->spinlock); ptm_drv->pgrp = -1; ptm_drv->session = -1; ptm_drv->foreground = RT_NULL; |
