OSDN Git Service

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)
commit82e86ae941194e6b6278ff67aad257b018e0684f
tree9a9b4b80400cb3de2f8d58750f78f93a566068f0
parent2464982174a1886b56b445b0503b331008a626fe
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