]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: unmap scatter gather list in imx_flush_buffer
authorDirk Behme <dirk.behme@de.bosch.com>
Tue, 9 Dec 2014 09:11:27 +0000 (18:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:23:07 +0000 (14:23 -0800)
commit531079cf6a4363f5a3a4db36e69336bffabbaa44
tree9a9b4b80400cb3de2f8d58750f78f93a566068f0
parent19dfd240ee5cc66228da11b5664dab68a67aba57
serial: imx: unmap scatter gather list in imx_flush_buffer

First, reformat the code to exit immediately. This allows us to add
more code in more readable format.

In case the TX DMA was still running, remove and disable it's resources.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c