summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/mvf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/mvf.c')
-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 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;
}
}