diff options
| author | 2013-11-29 18:00:35 -0500 | |
|---|---|---|
| committer | 2013-12-04 20:23:51 -0800 | |
| commit | 94459a975b7d4d70c20df1a32d63825469b8d4cc (patch) | |
| tree | 4e1aed67fa002283d4aa83f82d25e3d62e07efeb /drivers/misc/ti-st/st_core.c | |
| parent | mei: cleanup mei_irq_read_handler (diff) | |
| download | wireguard-linux-94459a975b7d4d70c20df1a32d63825469b8d4cc.tar.xz wireguard-linux-94459a975b7d4d70c20df1a32d63825469b8d4cc.zip | |
drivers/misc/ti-st: Prefer tty_driver_flush_buffer
The tty core provides an interface for flushing the driver's
write buffer: tty_driver_flush_buffer(); prefer the provided
interface over open-coded. Open-coding can lead to errors
such as the duplicated call in the st_kim driver.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/ti-st/st_core.c')
| -rw-r--r-- | drivers/misc/ti-st/st_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c index 8d64b681dd93..3aed525e55b4 100644 --- a/drivers/misc/ti-st/st_core.c +++ b/drivers/misc/ti-st/st_core.c @@ -812,7 +812,7 @@ static void st_tty_flush_buffer(struct tty_struct *tty) kfree_skb(st_gdata->tx_skb); st_gdata->tx_skb = NULL; - tty->ops->flush_buffer(tty); + tty_driver_flush_buffer(tty); return; } |
