1
0
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:
Stuart Longland 2017-03-05 12:46:16 +10:00
parent 8ecc4c8f15
commit f5519e8bea
Signed by: stuartl
GPG Key ID: 4DFA191410BDE3B7

View File

@ -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);
}
/*