aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-08-01 06:20:10 -0400
committerVinod Koul <vinod.koul@intel.com>2014-08-04 04:11:50 -0400
commit31c1e5a1350ae8d1bc2018f5de8264266d9773e1 (patch)
tree0980f83c03fdfb45c7b81fe782df55ffbe8c7d90
parentf02323ec68328c3db3e3c23490cd80f9ce9c00fa (diff)
dmaengine: Remove the context argument to the prep_dma_cyclic operation
The argument is always set to NULL and never used. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/amba-pl08x.c2
-rw-r--r--drivers/dma/at_hdmac.c3
-rw-r--r--drivers/dma/bcm2835-dma.c2
-rw-r--r--drivers/dma/dma-jz4740.c2
-rw-r--r--drivers/dma/edma.c2
-rw-r--r--drivers/dma/ep93xx_dma.c4
-rw-r--r--drivers/dma/fsl-edma.c2
-rw-r--r--drivers/dma/imx-dma.c2
-rw-r--r--drivers/dma/imx-sdma.c2
-rw-r--r--drivers/dma/mmp_pdma.c2
-rw-r--r--drivers/dma/mmp_tdma.c2
-rw-r--r--drivers/dma/mxs-dma.c2
-rw-r--r--drivers/dma/omap-dma.c3
-rw-r--r--drivers/dma/pl330.c2
-rw-r--r--drivers/dma/s3c24xx-dma.c3
-rw-r--r--drivers/dma/sa11x0-dma.c2
-rw-r--r--drivers/dma/sh/shdma-base.c2
-rw-r--r--drivers/dma/sirf-dma.c2
-rw-r--r--drivers/dma/ste_dma40.c3
-rw-r--r--drivers/dma/tegra20-apb-dma.c2
-rw-r--r--include/linux/dmaengine.h4
21 files changed, 22 insertions, 28 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 8114731a1c62..48ec81fe1eac 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -1653,7 +1653,7 @@ static struct dma_async_tx_descriptor *pl08x_prep_slave_sg(
1653static struct dma_async_tx_descriptor *pl08x_prep_dma_cyclic( 1653static struct dma_async_tx_descriptor *pl08x_prep_dma_cyclic(
1654 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, 1654 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
1655 size_t period_len, enum dma_transfer_direction direction, 1655 size_t period_len, enum dma_transfer_direction direction,
1656 unsigned long flags, void *context) 1656 unsigned long flags)
1657{ 1657{
1658 struct pl08x_dma_chan *plchan = to_pl08x_chan(chan); 1658 struct pl08x_dma_chan *plchan = to_pl08x_chan(chan);
1659 struct pl08x_driver_data *pl08x = plchan->host; 1659 struct pl08x_driver_data *pl08x = plchan->host;
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index c13a3bb0f594..d20ab1b73a3a 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -893,12 +893,11 @@ atc_dma_cyclic_fill_desc(struct dma_chan *chan, struct at_desc *desc,
893 * @period_len: number of bytes for each period 893 * @period_len: number of bytes for each period
894 * @direction: transfer direction, to or from device 894 * @direction: transfer direction, to or from device
895 * @flags: tx descriptor status flags 895 * @flags: tx descriptor status flags
896 * @context: transfer context (ignored)
897 */ 896 */
898static struct dma_async_tx_descriptor * 897static struct dma_async_tx_descriptor *
899atc_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, 898atc_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
900 size_t period_len, enum dma_transfer_direction direction, 899 size_t period_len, enum dma_transfer_direction direction,
901 unsigned long flags, void *context) 900 unsigned long flags)
902{ 901{
903 struct at_dma_chan *atchan = to_at_dma_chan(chan); 902 struct at_dma_chan *atchan = to_at_dma_chan(chan);
904 struct at_dma_slave *atslave = chan->private; 903 struct at_dma_slave *atslave = chan->private;
diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
index a03602164e3e..68007974961a 100644
--- a/drivers/dma/bcm2835-dma.c
+++ b/drivers/dma/bcm2835-dma.c
@@ -335,7 +335,7 @@ static void bcm2835_dma_issue_pending(struct dma_chan *chan)
335static struct dma_async_tx_descriptor *bcm2835_dma_prep_dma_cyclic( 335static struct dma_async_tx_descriptor *bcm2835_dma_prep_dma_cyclic(
336 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, 336 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
337 size_t period_len, enum dma_transfer_direction direction, 337 size_t period_len, enum dma_transfer_direction direction,
338 unsigned long flags, void *context) 338 unsigned long flags)
339{ 339{
340 struct bcm2835_chan *c = to_bcm2835_dma_chan(chan); 340 struct bcm2835_chan *c = to_bcm2835_dma_chan(chan);
341 enum dma_slave_buswidth dev_width; 341 enum dma_slave_buswidth dev_width;
diff --git a/drivers/dma/dma-jz4740.c b/drivers/dma/dma-jz4740.c
index bfbce6b07902..6a9d89c93b1f 100644
--- a/drivers/dma/dma-jz4740.c
+++ b/drivers/dma/dma-jz4740.c
@@ -433,7 +433,7 @@ static struct dma_async_tx_descriptor *jz4740_dma_prep_slave_sg(
433static struct dma_async_tx_descriptor *jz4740_dma_prep_dma_cyclic( 433static struct dma_async_tx_descriptor *jz4740_dma_prep_dma_cyclic(
434 struct dma_chan *c, dma_addr_t buf_addr, size_t buf_len, 434 struct dma_chan *c, dma_addr_t buf_addr, size_t buf_len,
435 size_t period_len, enum dma_transfer_direction direction, 435 size_t period_len, enum dma_transfer_direction direction,
436 unsigned long flags, void *context) 436 unsigned long flags)
437{ 437{
438 struct jz4740_dmaengine_chan *chan = to_jz4740_dma_chan(c); 438 struct jz4740_dmaengine_chan *chan = to_jz4740_dma_chan(c);
439 struct jz4740_dma_desc *desc; 439 struct jz4740_dma_desc *desc;
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index a13f37f719ed..d566650abf62 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -598,7 +598,7 @@ struct dma_async_tx_descriptor *edma_prep_dma_memcpy(
598static struct dma_async_tx_descriptor *edma_prep_dma_cyclic( 598static struct dma_async_tx_descriptor *edma_prep_dma_cyclic(
599 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, 599 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
600 size_t period_len, enum dma_transfer_direction direction, 600 size_t period_len, enum dma_transfer_direction direction,
601 unsigned long tx_flags, void *context) 601 unsigned long tx_flags)
602{ 602{
603 struct edma_chan *echan = to_edma_chan(chan); 603 struct edma_chan *echan = to_edma_chan(chan);
604 struct device *dev = chan->device->dev; 604 struct device *dev = chan->device->dev;
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c
index cb4bf682a708..7650470196c4 100644
--- a/drivers/dma/ep93xx_dma.c
+++ b/drivers/dma/ep93xx_dma.c
@@ -1092,7 +1092,6 @@ fail:
1092 * @period_len: length of a single period 1092 * @period_len: length of a single period
1093 * @dir: direction of the operation 1093 * @dir: direction of the operation
1094 * @flags: tx descriptor status flags 1094 * @flags: tx descriptor status flags
1095 * @context: operation context (ignored)
1096 * 1095 *
1097 * Prepares a descriptor for cyclic DMA operation. This means that once the 1096 * Prepares a descriptor for cyclic DMA operation. This means that once the
1098 * descriptor is submitted, we will be submitting in a @period_len sized 1097 * descriptor is submitted, we will be submitting in a @period_len sized
@@ -1105,8 +1104,7 @@ fail:
1105static struct dma_async_tx_descriptor * 1104static struct dma_async_tx_descriptor *
1106ep93xx_dma_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr, 1105ep93xx_dma_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr,
1107 size_t buf_len, size_t period_len, 1106 size_t buf_len, size_t period_len,
1108 enum dma_transfer_direction dir, unsigned long flags, 1107 enum dma_transfer_direction dir, unsigned long flags)
1109 void *context)
1110{ 1108{
1111 struct ep93xx_dma_chan *edmac = to_ep93xx_dma_chan(chan); 1109 struct ep93xx_dma_chan *edmac = to_ep93xx_dma_chan(chan);
1112 struct ep93xx_dma_desc *desc, *first; 1110 struct ep93xx_dma_desc *desc, *first;
diff --git a/drivers/dma/fsl-edma.c b/drivers/dma/fsl-edma.c
index 24ab3d371954..3c5711d5fe97 100644
--- a/drivers/dma/fsl-edma.c
+++ b/drivers/dma/fsl-edma.c
@@ -517,7 +517,7 @@ err:
517static struct dma_async_tx_descriptor *fsl_edma_prep_dma_cyclic( 517static struct dma_async_tx_descriptor *fsl_edma_prep_dma_cyclic(
518 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, 518 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
519 size_t period_len, enum dma_transfer_direction direction, 519 size_t period_len, enum dma_transfer_direction direction,
520 unsigned long flags, void *context) 520 unsigned long flags)
521{ 521{
522 struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan); 522 struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan);
523 struct fsl_edma_desc *fsl_desc; 523 struct fsl_edma_desc *fsl_desc;
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index 286660a12cc6..9d2c9e7374dc 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -866,7 +866,7 @@ static struct dma_async_tx_descriptor *imxdma_prep_slave_sg(
866static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic( 866static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic(
867 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, 867 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
868 size_t period_len, enum dma_transfer_direction direction, 868 size_t period_len, enum dma_transfer_direction direction,
869 unsigned long flags, void *context) 869 unsigned long flags)
870{ 870{
871 struct imxdma_channel *imxdmac = to_imxdma_chan(chan); 871 struct imxdma_channel *imxdmac = to_imxdma_chan(chan);
872 struct imxdma_engine *imxdma = imxdmac->imxdma; 872 struct imxdma_engine *imxdma = imxdmac->imxdma;
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index de584e605db5..f7626e37d0b8 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1125,7 +1125,7 @@ err_out:
1125static struct dma_async_tx_descriptor *sdma_prep_dma_cyclic( 1125static struct dma_async_tx_descriptor *sdma_prep_dma_cyclic(
1126 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, 1126 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
1127 size_t period_len, enum dma_transfer_direction direction, 1127 size_t period_len, enum dma_transfer_direction direction,
1128 unsigned long flags, void *context) 1128 unsigned long flags)
1129{ 1129{
1130 struct sdma_channel *sdmac = to_sdma_chan(chan); 1130 struct sdma_channel *sdmac = to_sdma_chan(chan);
1131 struct sdma_engine *sdma = sdmac->sdma; 1131 struct sdma_engine *sdma = sdmac->sdma;
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c
index a7b186d536b3..a1a4db5721b8 100644
--- a/drivers/dma/mmp_pdma.c
+++ b/drivers/dma/mmp_pdma.c
@@ -601,7 +601,7 @@ static struct dma_async_tx_descriptor *
601mmp_pdma_prep_dma_cyclic(struct dma_chan *dchan, 601mmp_pdma_prep_dma_cyclic(struct dma_chan *dchan,
602 dma_addr_t buf_addr, size_t len, size_t period_len, 602 dma_addr_t buf_addr, size_t len, size_t period_len,
603 enum dma_transfer_direction direction, 603 enum dma_transfer_direction direction,
604 unsigned long flags, void *context) 604 unsigned long flags)
605{ 605{
606 struct mmp_pdma_chan *chan; 606 struct mmp_pdma_chan *chan;
607 struct mmp_pdma_desc_sw *first = NULL, *prev = NULL, *new; 607 struct mmp_pdma_desc_sw *first = NULL, *prev = NULL, *new;
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
index 724f7f4c9720..6ad30e2c5038 100644
--- a/drivers/dma/mmp_tdma.c
+++ b/drivers/dma/mmp_tdma.c
@@ -389,7 +389,7 @@ struct mmp_tdma_desc *mmp_tdma_alloc_descriptor(struct mmp_tdma_chan *tdmac)
389static struct dma_async_tx_descriptor *mmp_tdma_prep_dma_cyclic( 389static struct dma_async_tx_descriptor *mmp_tdma_prep_dma_cyclic(
390 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, 390 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
391 size_t period_len, enum dma_transfer_direction direction, 391 size_t period_len, enum dma_transfer_direction direction,
392 unsigned long flags, void *context) 392 unsigned long flags)
393{ 393{
394 struct mmp_tdma_chan *tdmac = to_mmp_tdma_chan(chan); 394 struct mmp_tdma_chan *tdmac = to_mmp_tdma_chan(chan);
395 struct mmp_tdma_desc *desc; 395 struct mmp_tdma_desc *desc;
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index dc1dba78e529..5ea61201dbf0 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -589,7 +589,7 @@ err_out:
589static struct dma_async_tx_descriptor *mxs_dma_prep_dma_cyclic( 589static struct dma_async_tx_descriptor *mxs_dma_prep_dma_cyclic(
590 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, 590 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
591 size_t period_len, enum dma_transfer_direction direction, 591 size_t period_len, enum dma_transfer_direction direction,
592 unsigned long flags, void *context) 592 unsigned long flags)
593{ 593{
594 struct mxs_dma_chan *mxs_chan = to_mxs_dma_chan(chan); 594 struct mxs_dma_chan *mxs_chan = to_mxs_dma_chan(chan);
595 struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma; 595 struct mxs_dma_engine *mxs_dma = mxs_chan->mxs_dma;
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c
index b19f04f4390b..4cf7d9a950d7 100644
--- a/drivers/dma/omap-dma.c
+++ b/drivers/dma/omap-dma.c
@@ -853,8 +853,7 @@ static struct dma_async_tx_descriptor *omap_dma_prep_slave_sg(
853 853
854static struct dma_async_tx_descriptor *omap_dma_prep_dma_cyclic( 854static struct dma_async_tx_descriptor *omap_dma_prep_dma_cyclic(
855 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, 855 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
856 size_t period_len, enum dma_transfer_direction dir, unsigned long flags, 856 size_t period_len, enum dma_transfer_direction dir, unsigned long flags)
857 void *context)
858{ 857{
859 struct omap_dmadev *od = to_omap_dma_dev(chan->device); 858 struct omap_dmadev *od = to_omap_dma_dev(chan->device);
860 struct omap_chan *c = to_omap_dma_chan(chan); 859 struct omap_chan *c = to_omap_dma_chan(chan);
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index a55d75498098..d5149aacd2fe 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2362,7 +2362,7 @@ static inline int get_burst_len(struct dma_pl330_desc *desc, size_t len)
2362static struct dma_async_tx_descriptor *pl330_prep_dma_cyclic( 2362static struct dma_async_tx_descriptor *pl330_prep_dma_cyclic(
2363 struct dma_chan *chan, dma_addr_t dma_addr, size_t len, 2363 struct dma_chan *chan, dma_addr_t dma_addr, size_t len,
2364 size_t period_len, enum dma_transfer_direction direction, 2364 size_t period_len, enum dma_transfer_direction direction,
2365 unsigned long flags, void *context) 2365 unsigned long flags)
2366{ 2366{
2367 struct dma_pl330_desc *desc = NULL, *first = NULL; 2367 struct dma_pl330_desc *desc = NULL, *first = NULL;
2368 struct dma_pl330_chan *pch = to_pchan(chan); 2368 struct dma_pl330_chan *pch = to_pchan(chan);
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c
index 012520c9fd79..7416572d1e40 100644
--- a/drivers/dma/s3c24xx-dma.c
+++ b/drivers/dma/s3c24xx-dma.c
@@ -889,8 +889,7 @@ static struct dma_async_tx_descriptor *s3c24xx_dma_prep_memcpy(
889 889
890static struct dma_async_tx_descriptor *s3c24xx_dma_prep_dma_cyclic( 890static struct dma_async_tx_descriptor *s3c24xx_dma_prep_dma_cyclic(
891 struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period, 891 struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period,
892 enum dma_transfer_direction direction, unsigned long flags, 892 enum dma_transfer_direction direction, unsigned long flags)
893 void *context)
894{ 893{
895 struct s3c24xx_dma_chan *s3cchan = to_s3c24xx_dma_chan(chan); 894 struct s3c24xx_dma_chan *s3cchan = to_s3c24xx_dma_chan(chan);
896 struct s3c24xx_dma_engine *s3cdma = s3cchan->host; 895 struct s3c24xx_dma_engine *s3cdma = s3cchan->host;
diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c
index 5ebdfbc1051e..4b0ef043729a 100644
--- a/drivers/dma/sa11x0-dma.c
+++ b/drivers/dma/sa11x0-dma.c
@@ -612,7 +612,7 @@ static struct dma_async_tx_descriptor *sa11x0_dma_prep_slave_sg(
612 612
613static struct dma_async_tx_descriptor *sa11x0_dma_prep_dma_cyclic( 613static struct dma_async_tx_descriptor *sa11x0_dma_prep_dma_cyclic(
614 struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period, 614 struct dma_chan *chan, dma_addr_t addr, size_t size, size_t period,
615 enum dma_transfer_direction dir, unsigned long flags, void *context) 615 enum dma_transfer_direction dir, unsigned long flags)
616{ 616{
617 struct sa11x0_dma_chan *c = to_sa11x0_dma_chan(chan); 617 struct sa11x0_dma_chan *c = to_sa11x0_dma_chan(chan);
618 struct sa11x0_dma_desc *txd; 618 struct sa11x0_dma_desc *txd;
diff --git a/drivers/dma/sh/shdma-base.c b/drivers/dma/sh/shdma-base.c
index e427a03a0e8b..42d497416196 100644
--- a/drivers/dma/sh/shdma-base.c
+++ b/drivers/dma/sh/shdma-base.c
@@ -668,7 +668,7 @@ static struct dma_async_tx_descriptor *shdma_prep_slave_sg(
668static struct dma_async_tx_descriptor *shdma_prep_dma_cyclic( 668static struct dma_async_tx_descriptor *shdma_prep_dma_cyclic(
669 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, 669 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
670 size_t period_len, enum dma_transfer_direction direction, 670 size_t period_len, enum dma_transfer_direction direction,
671 unsigned long flags, void *context) 671 unsigned long flags)
672{ 672{
673 struct shdma_chan *schan = to_shdma_chan(chan); 673 struct shdma_chan *schan = to_shdma_chan(chan);
674 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); 674 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c
index 03f7820fa333..aac03ab10c54 100644
--- a/drivers/dma/sirf-dma.c
+++ b/drivers/dma/sirf-dma.c
@@ -580,7 +580,7 @@ err_dir:
580static struct dma_async_tx_descriptor * 580static struct dma_async_tx_descriptor *
581sirfsoc_dma_prep_cyclic(struct dma_chan *chan, dma_addr_t addr, 581sirfsoc_dma_prep_cyclic(struct dma_chan *chan, dma_addr_t addr,
582 size_t buf_len, size_t period_len, 582 size_t buf_len, size_t period_len,
583 enum dma_transfer_direction direction, unsigned long flags, void *context) 583 enum dma_transfer_direction direction, unsigned long flags)
584{ 584{
585 struct sirfsoc_dma_chan *schan = dma_chan_to_sirfsoc_dma_chan(chan); 585 struct sirfsoc_dma_chan *schan = dma_chan_to_sirfsoc_dma_chan(chan);
586 struct sirfsoc_dma_desc *sdesc = NULL; 586 struct sirfsoc_dma_desc *sdesc = NULL;
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index c7984459ede7..5fe59335e247 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2531,8 +2531,7 @@ d40_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
2531static struct dma_async_tx_descriptor * 2531static struct dma_async_tx_descriptor *
2532dma40_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr, 2532dma40_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr,
2533 size_t buf_len, size_t period_len, 2533 size_t buf_len, size_t period_len,
2534 enum dma_transfer_direction direction, unsigned long flags, 2534 enum dma_transfer_direction direction, unsigned long flags)
2535 void *context)
2536{ 2535{
2537 unsigned int periods = buf_len / period_len; 2536 unsigned int periods = buf_len / period_len;
2538 struct dma_async_tx_descriptor *txd; 2537 struct dma_async_tx_descriptor *txd;
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index 03ad64ecaaf0..16efa603ff65 100644
--- a/drivers/dma/tegra20-apb-dma.c
+++ b/drivers/dma/tegra20-apb-dma.c
@@ -1055,7 +1055,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_slave_sg(
1055static struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic( 1055static struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic(
1056 struct dma_chan *dc, dma_addr_t buf_addr, size_t buf_len, 1056 struct dma_chan *dc, dma_addr_t buf_addr, size_t buf_len,
1057 size_t period_len, enum dma_transfer_direction direction, 1057 size_t period_len, enum dma_transfer_direction direction,
1058 unsigned long flags, void *context) 1058 unsigned long flags)
1059{ 1059{
1060 struct tegra_dma_channel *tdc = to_tegra_dma_chan(dc); 1060 struct tegra_dma_channel *tdc = to_tegra_dma_chan(dc);
1061 struct tegra_dma_desc *dma_desc = NULL; 1061 struct tegra_dma_desc *dma_desc = NULL;
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 4eb2f82aed1d..94ddccd706fc 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -669,7 +669,7 @@ struct dma_device {
669 struct dma_async_tx_descriptor *(*device_prep_dma_cyclic)( 669 struct dma_async_tx_descriptor *(*device_prep_dma_cyclic)(
670 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, 670 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
671 size_t period_len, enum dma_transfer_direction direction, 671 size_t period_len, enum dma_transfer_direction direction,
672 unsigned long flags, void *context); 672 unsigned long flags);
673 struct dma_async_tx_descriptor *(*device_prep_interleaved_dma)( 673 struct dma_async_tx_descriptor *(*device_prep_interleaved_dma)(
674 struct dma_chan *chan, struct dma_interleaved_template *xt, 674 struct dma_chan *chan, struct dma_interleaved_template *xt,
675 unsigned long flags); 675 unsigned long flags);
@@ -744,7 +744,7 @@ static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_cyclic(
744 unsigned long flags) 744 unsigned long flags)
745{ 745{
746 return chan->device->device_prep_dma_cyclic(chan, buf_addr, buf_len, 746 return chan->device->device_prep_dma_cyclic(chan, buf_addr, buf_len,
747 period_len, dir, flags, NULL); 747 period_len, dir, flags);
748} 748}
749 749
750static inline struct dma_async_tx_descriptor *dmaengine_prep_interleaved_dma( 750static inline struct dma_async_tx_descriptor *dmaengine_prep_interleaved_dma(