mirror of
https://github.com/sjlongland/adv950.git
synced 2025-11-05 07:48:26 +10:00
serial_core: Pass tty object to tty_lock/tty_unlock.
As per 89c8d91e31f267703e365593f6bfebb9f6d2ad01. The `tty_lock` and `tty_unlock` functions now take a `tty` object as an argument.
This commit is contained in:
parent
8ecc4c8f15
commit
f5519e8bea
@ -1404,9 +1404,9 @@ static void uart_wait_until_sent(struct tty_struct *tty, int timeout)
|
||||
struct uart_state *state = tty->driver_data;
|
||||
struct uart_port *port = state->uart_port;
|
||||
|
||||
tty_lock();
|
||||
tty_lock(tty);
|
||||
__uart_wait_until_sent(port, timeout);
|
||||
tty_unlock();
|
||||
tty_unlock(tty);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user