From d815c9701e9c6990f4311f24b7f15c48e077dbba Mon Sep 17 00:00:00 2001 From: Anthony Felice Date: Tue, 1 Apr 2014 16:09:04 -0400 Subject: mvf: Allow DMA channel 0 to be used in imx_shutdown in the serial driver. --- drivers/tty/serial/mvf.c | 4 ++-- 1 file 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; } } -- cgit v1.2.3