summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Felice <tony.felice@timesys.com>2014-04-01 16:09:04 -0400
committerAnthony Felice <tony.felice@timesys.com>2014-04-03 17:29:21 -0400
commitd815c9701e9c6990f4311f24b7f15c48e077dbba (patch)
tree0754a75a3964ea2ba348aaee43518c76b4053e4f
parentaed6c4fe50bfa2b5f4d30f99e984cd6bae224158 (diff)
mvf: Allow DMA channel 0 to be used in imx_shutdown in the serial driver.3.0-vybrid-ts2.15
-rw-r--r--drivers/tty/serial/mvf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/mvf.c b/drivers/tty/serial/mvf.c
index 1b730af..0ea0181 100644
--- a/drivers/tty/serial/mvf.c
+++ b/drivers/tty/serial/mvf.c
@@ -647,10 +647,10 @@ static void imx_shutdown(struct uart_port *port)
if (sport->enable_dma) {
/* We have to wait for the DMA to finish. */
- if (sport->dma_tx_ch) {
+ if (sport->dma_tx_ch >= 0) {
mcf_edma_stop_transfer(sport->dma_tx_ch);
mcf_edma_free_channel(sport->dma_tx_ch, sport);
- sport->dma_tx_ch = 0;
+ sport->dma_tx_ch = -1;
}
}