diff options
author | Anthony Felice <tony.felice@timesys.com> | 2014-04-01 16:09:04 -0400 |
---|---|---|
committer | Anthony Felice <tony.felice@timesys.com> | 2014-04-03 17:29:21 -0400 |
commit | d815c9701e9c6990f4311f24b7f15c48e077dbba (patch) | |
tree | 0754a75a3964ea2ba348aaee43518c76b4053e4f | |
parent | aed6c4fe50bfa2b5f4d30f99e984cd6bae224158 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/mvf.c b/drivers/tty/serial/mvf.c index 1b730afd4312..0ea0181cd455 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; } } |