]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
serial: tegra: Remove redundant code and check in tegra_uart_stop_rx()
authorJon Hunter <jonathanh@nvidia.com>
Fri, 9 Oct 2015 13:50:01 +0000 (14:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:07:57 +0000 (21:07 -0700)
commitb0e066ccb5b2c474385fe10dbb385bde10738177
treeac3c175ec68feb9e27cee335fde6161a14491b9d
parent2230a9475f7f00173382806f1e4b9ea53d83a469
serial: tegra: Remove redundant code and check in tegra_uart_stop_rx()

The serial-tegra driver always uses DMA and hence the driver always
allocates DMA channels. Therefore, the test to see if the RX DMA channel
is initialised in tegra_uart_stop_rx() is unnecessary and so remove
the test and the code that corresponds to the case where the RX DMA
channel is not initialised. Please note that the call to
tegra_uart_stop_rx() should always be before the call to
tegra_uart_shutdown() which will uninitialise the RX DMA channel.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c