diff options
| -rw-r--r-- | drivers/ata/pata_arasan_cf.c | 5 | ||||
| -rw-r--r-- | drivers/dma/coh901318.c | 2 | ||||
| -rw-r--r-- | drivers/media/platform/soc_camera/mx3_camera.c | 6 | ||||
| -rw-r--r-- | drivers/mtd/nand/fsmc_nand.c | 2 | ||||
| -rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 2 | ||||
| -rw-r--r-- | drivers/net/ethernet/micrel/ks8842.c | 6 | ||||
| -rw-r--r-- | drivers/tty/serial/sh-sci.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/mx3fb.c | 3 |
8 files changed, 11 insertions, 17 deletions
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index 4edb1a81f63f..38216b991474 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c | |||
| @@ -420,7 +420,7 @@ dma_xfer(struct arasan_cf_dev *acdev, dma_addr_t src, dma_addr_t dest, u32 len) | |||
| 420 | 420 | ||
| 421 | /* Wait for DMA to complete */ | 421 | /* Wait for DMA to complete */ |
| 422 | if (!wait_for_completion_timeout(&acdev->dma_completion, TIMEOUT)) { | 422 | if (!wait_for_completion_timeout(&acdev->dma_completion, TIMEOUT)) { |
| 423 | chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); | 423 | dmaengine_terminate_all(chan); |
| 424 | dev_err(acdev->host->dev, "wait_for_completion_timeout\n"); | 424 | dev_err(acdev->host->dev, "wait_for_completion_timeout\n"); |
| 425 | return -ETIMEDOUT; | 425 | return -ETIMEDOUT; |
| 426 | } | 426 | } |
| @@ -928,8 +928,7 @@ static int arasan_cf_suspend(struct device *dev) | |||
| 928 | struct arasan_cf_dev *acdev = host->ports[0]->private_data; | 928 | struct arasan_cf_dev *acdev = host->ports[0]->private_data; |
| 929 | 929 | ||
| 930 | if (acdev->dma_chan) | 930 | if (acdev->dma_chan) |
| 931 | acdev->dma_chan->device->device_control(acdev->dma_chan, | 931 | dmaengine_terminate_all(acdev->dma_chan); |
| 932 | DMA_TERMINATE_ALL, 0); | ||
| 933 | 932 | ||
| 934 | cf_exit(acdev); | 933 | cf_exit(acdev); |
| 935 | return ata_host_suspend(host, PMSG_SUSPEND); | 934 | return ata_host_suspend(host, PMSG_SUSPEND); |
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index 3c6716e0b78e..e88588d8ecd3 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c | |||
| @@ -2156,7 +2156,7 @@ coh901318_free_chan_resources(struct dma_chan *chan) | |||
| 2156 | 2156 | ||
| 2157 | spin_unlock_irqrestore(&cohc->lock, flags); | 2157 | spin_unlock_irqrestore(&cohc->lock, flags); |
| 2158 | 2158 | ||
| 2159 | chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); | 2159 | dmaengine_terminate_all(chan); |
| 2160 | } | 2160 | } |
| 2161 | 2161 | ||
| 2162 | 2162 | ||
diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c index 83315dfeef62..7696a873510d 100644 --- a/drivers/media/platform/soc_camera/mx3_camera.c +++ b/drivers/media/platform/soc_camera/mx3_camera.c | |||
| @@ -415,10 +415,8 @@ static void mx3_stop_streaming(struct vb2_queue *q) | |||
| 415 | struct mx3_camera_buffer *buf, *tmp; | 415 | struct mx3_camera_buffer *buf, *tmp; |
| 416 | unsigned long flags; | 416 | unsigned long flags; |
| 417 | 417 | ||
| 418 | if (ichan) { | 418 | if (ichan) |
| 419 | struct dma_chan *chan = &ichan->dma_chan; | 419 | dmaengine_pause(&ichan->dma_chan); |
| 420 | chan->device->device_control(chan, DMA_PAUSE, 0); | ||
| 421 | } | ||
| 422 | 420 | ||
| 423 | spin_lock_irqsave(&mx3_cam->lock, flags); | 421 | spin_lock_irqsave(&mx3_cam->lock, flags); |
| 424 | 422 | ||
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c index 1550692973dc..7a915870d9d6 100644 --- a/drivers/mtd/nand/fsmc_nand.c +++ b/drivers/mtd/nand/fsmc_nand.c | |||
| @@ -605,7 +605,7 @@ static int dma_xfer(struct fsmc_nand_data *host, void *buffer, int len, | |||
| 605 | wait_for_completion_timeout(&host->dma_access_complete, | 605 | wait_for_completion_timeout(&host->dma_access_complete, |
| 606 | msecs_to_jiffies(3000)); | 606 | msecs_to_jiffies(3000)); |
| 607 | if (ret <= 0) { | 607 | if (ret <= 0) { |
| 608 | chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); | 608 | dmaengine_terminate_all(chan); |
| 609 | dev_err(host->dev, "wait_for_completion_timeout\n"); | 609 | dev_err(host->dev, "wait_for_completion_timeout\n"); |
| 610 | if (!ret) | 610 | if (!ret) |
| 611 | ret = -ETIMEDOUT; | 611 | ret = -ETIMEDOUT; |
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index c0670237e7a2..0ed7c603298f 100644 --- a/drivers/mtd/nand/sh_flctl.c +++ b/drivers/mtd/nand/sh_flctl.c | |||
| @@ -395,7 +395,7 @@ static int flctl_dma_fifo0_transfer(struct sh_flctl *flctl, unsigned long *buf, | |||
| 395 | msecs_to_jiffies(3000)); | 395 | msecs_to_jiffies(3000)); |
| 396 | 396 | ||
| 397 | if (ret <= 0) { | 397 | if (ret <= 0) { |
| 398 | chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); | 398 | dmaengine_terminate_all(chan); |
| 399 | dev_err(&flctl->pdev->dev, "wait_for_completion_timeout\n"); | 399 | dev_err(&flctl->pdev->dev, "wait_for_completion_timeout\n"); |
| 400 | } | 400 | } |
| 401 | 401 | ||
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c index 822616e3c375..0c33b92a5a81 100644 --- a/drivers/net/ethernet/micrel/ks8842.c +++ b/drivers/net/ethernet/micrel/ks8842.c | |||
| @@ -875,13 +875,11 @@ static void ks8842_stop_dma(struct ks8842_adapter *adapter) | |||
| 875 | 875 | ||
| 876 | tx_ctl->adesc = NULL; | 876 | tx_ctl->adesc = NULL; |
| 877 | if (tx_ctl->chan) | 877 | if (tx_ctl->chan) |
| 878 | tx_ctl->chan->device->device_control(tx_ctl->chan, | 878 | dmaengine_terminate_all(tx_ctl->chan); |
| 879 | DMA_TERMINATE_ALL, 0); | ||
| 880 | 879 | ||
| 881 | rx_ctl->adesc = NULL; | 880 | rx_ctl->adesc = NULL; |
| 882 | if (rx_ctl->chan) | 881 | if (rx_ctl->chan) |
| 883 | rx_ctl->chan->device->device_control(rx_ctl->chan, | 882 | dmaengine_terminate_all(rx_ctl->chan); |
| 884 | DMA_TERMINATE_ALL, 0); | ||
| 885 | 883 | ||
| 886 | if (sg_dma_address(&rx_ctl->sg)) | 884 | if (sg_dma_address(&rx_ctl->sg)) |
| 887 | dma_unmap_single(adapter->dev, sg_dma_address(&rx_ctl->sg), | 885 | dma_unmap_single(adapter->dev, sg_dma_address(&rx_ctl->sg), |
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 3081e46085ce..eb17c7124e72 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
| @@ -1403,7 +1403,7 @@ static void work_fn_rx(struct work_struct *work) | |||
| 1403 | unsigned long flags; | 1403 | unsigned long flags; |
| 1404 | int count; | 1404 | int count; |
| 1405 | 1405 | ||
| 1406 | chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); | 1406 | dmaengine_terminate_all(chan); |
| 1407 | dev_dbg(port->dev, "Read %zu bytes with cookie %d\n", | 1407 | dev_dbg(port->dev, "Read %zu bytes with cookie %d\n", |
| 1408 | sh_desc->partial, sh_desc->cookie); | 1408 | sh_desc->partial, sh_desc->cookie); |
| 1409 | 1409 | ||
diff --git a/drivers/video/fbdev/mx3fb.c b/drivers/video/fbdev/mx3fb.c index c645a0a0c341..cdbc93a92185 100644 --- a/drivers/video/fbdev/mx3fb.c +++ b/drivers/video/fbdev/mx3fb.c | |||
| @@ -461,8 +461,7 @@ static void sdc_disable_channel(struct mx3fb_info *mx3_fbi) | |||
| 461 | 461 | ||
| 462 | spin_unlock_irqrestore(&mx3fb->lock, flags); | 462 | spin_unlock_irqrestore(&mx3fb->lock, flags); |
| 463 | 463 | ||
| 464 | mx3_fbi->txd->chan->device->device_control(mx3_fbi->txd->chan, | 464 | dmaengine_terminate_all(mx3_fbi->txd->chan); |
| 465 | DMA_TERMINATE_ALL, 0); | ||
| 466 | mx3_fbi->txd = NULL; | 465 | mx3_fbi->txd = NULL; |
| 467 | mx3_fbi->cookie = -EINVAL; | 466 | mx3_fbi->cookie = -EINVAL; |
| 468 | } | 467 | } |
