serial: imx: cleanup imx_uart_disable_dma()
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 7 May 2018 21:36:09 +0000 (23:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 11:48:28 +0000 (13:48 +0200)
commit676a31d8cb2e71e141318e175a6d2496112532f7
tree13942afc0d7b87b540f0c67fe40a50a09f0a0ff5
parent43f1831b081d7ea86552311a77b6b04d82694d79
serial: imx: cleanup imx_uart_disable_dma()

Remove unrelated CTSC/CTS disabling from imx_uart_disable_dma() and
move it to imx_uart_shutdown(), which is the only user of the DMA
disabling function. This should not change the driver's behaviour,
but improves readability. After this change imx_uart_disable_dma()
does the reverse thing of imx_uart_enable_dma().

Suggested-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c