diff options
| author | Vinod Koul <vinod.koul@intel.com> | 2014-10-11 11:46:46 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2014-10-15 12:01:28 -0400 |
| commit | 7abfe6eca8f978f090b3c203cfb53d37a66ea9f2 (patch) | |
| tree | 1e9a18765cab9d6c29abd3659a8351874c443fc7 | |
| parent | 4fdcf68487e520844e077f75943b1e04cc05943b (diff) | |
carma-fpga: move to fsl_dma_external_start()
carma-fpga driver uses device control with custom FSLDMA_EXTERNAL_START
command. Since we wnat to deprecate the device control, move this driver to
use new fsl_dma_external_start() API
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
| -rw-r--r-- | drivers/misc/carma/carma-fpga-program.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/carma/carma-fpga-program.c b/drivers/misc/carma/carma-fpga-program.c index fd0cb8b1eefb..298f9127e697 100644 --- a/drivers/misc/carma/carma-fpga-program.c +++ b/drivers/misc/carma/carma-fpga-program.c | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <linux/completion.h> | 16 | #include <linux/completion.h> |
| 17 | #include <linux/miscdevice.h> | 17 | #include <linux/miscdevice.h> |
| 18 | #include <linux/dmaengine.h> | 18 | #include <linux/dmaengine.h> |
| 19 | #include <linux/fsldma.h> | ||
| 19 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
| 20 | #include <linux/highmem.h> | 21 | #include <linux/highmem.h> |
| 21 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
| @@ -524,7 +525,7 @@ static noinline int fpga_program_dma(struct fpga_dev *priv) | |||
| 524 | goto out_dma_unmap; | 525 | goto out_dma_unmap; |
| 525 | } | 526 | } |
| 526 | 527 | ||
| 527 | ret = chan->device->device_control(chan, FSLDMA_EXTERNAL_START, 1); | 528 | ret = fsl_dma_external_start(chan, 1) |
| 528 | if (ret) { | 529 | if (ret) { |
| 529 | dev_err(priv->dev, "DMA external control setup failed\n"); | 530 | dev_err(priv->dev, "DMA external control setup failed\n"); |
| 530 | goto out_dma_unmap; | 531 | goto out_dma_unmap; |
