diff options
author | Huang Shijie <b32955@freescale.com> | 2013-10-11 06:31:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-16 16:19:55 -0400 |
commit | f0ef8834b280ebb6c271f155ea040bf4af6c1881 (patch) | |
tree | 61ff7ac3ee31cab16788e6a82ceb34b08bce4c30 /drivers/tty/serial/imx.c | |
parent | 947c74eba85bff743bc15adbdd9193ffff60c29f (diff) |
serial: imx: use the dmaengine_tx_status
Use the dmaengine_tx_status to simplify the code, do not change any logic.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r-- | drivers/tty/serial/imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index cadf7e5848b2..13c2c2d09cac 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c | |||
@@ -521,7 +521,7 @@ static void dma_tx_work(struct work_struct *w) | |||
521 | unsigned long flags; | 521 | unsigned long flags; |
522 | int ret; | 522 | int ret; |
523 | 523 | ||
524 | status = chan->device->device_tx_status(chan, (dma_cookie_t)0, NULL); | 524 | status = dmaengine_tx_status(chan, (dma_cookie_t)0, NULL); |
525 | if (DMA_IN_PROGRESS == status) | 525 | if (DMA_IN_PROGRESS == status) |
526 | return; | 526 | return; |
527 | 527 | ||
@@ -926,7 +926,7 @@ static void dma_rx_callback(void *data) | |||
926 | /* unmap it first */ | 926 | /* unmap it first */ |
927 | dma_unmap_sg(sport->port.dev, sgl, 1, DMA_FROM_DEVICE); | 927 | dma_unmap_sg(sport->port.dev, sgl, 1, DMA_FROM_DEVICE); |
928 | 928 | ||
929 | status = chan->device->device_tx_status(chan, (dma_cookie_t)0, &state); | 929 | status = dmaengine_tx_status(chan, (dma_cookie_t)0, &state); |
930 | count = RX_BUF_SIZE - state.residue; | 930 | count = RX_BUF_SIZE - state.residue; |
931 | dev_dbg(sport->port.dev, "We get %d bytes.\n", count); | 931 | dev_dbg(sport->port.dev, "We get %d bytes.\n", count); |
932 | 932 | ||