diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2014-10-24 13:26:37 -0700 | 
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-10-24 13:26:37 -0700 | 
| commit | db65bcfd9563a7531c3dd46c350565705be1fd84 (patch) | |
| tree | ff7b068472764e36ab02a739917e206dd11d6b46 /drivers/misc/carma/carma-fpga-program.c | |
| parent | b47dcbdc5161d3d5756f430191e2840d9b855492 (diff) | |
| parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) | |
Merge tag 'v3.18-rc1' into x86/urgent
Reason:
Need to apply audit patch on top of v3.18-rc1.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'drivers/misc/carma/carma-fpga-program.c')
| -rw-r--r-- | drivers/misc/carma/carma-fpga-program.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/drivers/misc/carma/carma-fpga-program.c b/drivers/misc/carma/carma-fpga-program.c index 7e97e53f9ff2..339b252fcedd 100644 --- a/drivers/misc/carma/carma-fpga-program.c +++ b/drivers/misc/carma/carma-fpga-program.c @@ -16,6 +16,7 @@  #include <linux/completion.h>  #include <linux/miscdevice.h>  #include <linux/dmaengine.h> +#include <linux/fsldma.h>  #include <linux/interrupt.h>  #include <linux/highmem.h>  #include <linux/kernel.h> @@ -518,23 +519,22 @@ static noinline int fpga_program_dma(struct fpga_dev *priv)  	config.direction = DMA_MEM_TO_DEV;  	config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;  	config.dst_maxburst = fpga_fifo_size(priv->regs) / 2 / 4; -	ret = chan->device->device_control(chan, DMA_SLAVE_CONFIG, -					   (unsigned long)&config); +	ret = dmaengine_slave_config(chan, &config);  	if (ret) {  		dev_err(priv->dev, "DMA slave configuration failed\n");  		goto out_dma_unmap;  	} -	ret = chan->device->device_control(chan, FSLDMA_EXTERNAL_START, 1); +	ret = fsl_dma_external_start(chan, 1)  	if (ret) {  		dev_err(priv->dev, "DMA external control setup failed\n");  		goto out_dma_unmap;  	}  	/* setup and submit the DMA transaction */ -	tx = chan->device->device_prep_dma_sg(chan, -					      table.sgl, num_pages, -					      vb->sglist, vb->sglen, 0); + +	tx = dmaengine_prep_dma_sg(chan, table.sgl, num_pages, +			vb->sglist, vb->sglen, 0);  	if (!tx) {  		dev_err(priv->dev, "Unable to prep DMA transaction\n");  		ret = -ENOMEM; | 
