diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-03-18 13:16:19 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-03-18 13:16:19 -0400 |
commit | 381a3c4a33bf33943ed3791bd8797d8d8490b4fd (patch) | |
tree | 122afe0267936a19c23d340b4291b66c6b92cee7 /drivers/dma | |
parent | 75967b788c2898601620ce91ed14b4a9a371b6fe (diff) | |
parent | 2fcb9e3c86fc312beb031832fca783498fd4bdb5 (diff) |
Merge branch 'topic/alloc_removal' into for-linus
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/amba-pl08x.c | 7 | ||||
-rw-r--r-- | drivers/dma/dma-jz4740.c | 6 | ||||
-rw-r--r-- | drivers/dma/img-mdc-dma.c | 6 | ||||
-rw-r--r-- | drivers/dma/k3dma.c | 6 | ||||
-rw-r--r-- | drivers/dma/s3c24xx-dma.c | 9 | ||||
-rw-r--r-- | drivers/dma/sa11x0-dma.c | 6 | ||||
-rw-r--r-- | drivers/dma/sun6i-dma.c | 6 |
7 files changed, 0 insertions, 46 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 171e768888c0..e7c50d4c3d45 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c | |||
@@ -1185,11 +1185,6 @@ static void pl08x_free_txd_list(struct pl08x_driver_data *pl08x, | |||
1185 | /* | 1185 | /* |
1186 | * The DMA ENGINE API | 1186 | * The DMA ENGINE API |
1187 | */ | 1187 | */ |
1188 | static int pl08x_alloc_chan_resources(struct dma_chan *chan) | ||
1189 | { | ||
1190 | return 0; | ||
1191 | } | ||
1192 | |||
1193 | static void pl08x_free_chan_resources(struct dma_chan *chan) | 1188 | static void pl08x_free_chan_resources(struct dma_chan *chan) |
1194 | { | 1189 | { |
1195 | /* Ensure all queued descriptors are freed */ | 1190 | /* Ensure all queued descriptors are freed */ |
@@ -2056,7 +2051,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) | |||
2056 | /* Initialize memcpy engine */ | 2051 | /* Initialize memcpy engine */ |
2057 | dma_cap_set(DMA_MEMCPY, pl08x->memcpy.cap_mask); | 2052 | dma_cap_set(DMA_MEMCPY, pl08x->memcpy.cap_mask); |
2058 | pl08x->memcpy.dev = &adev->dev; | 2053 | pl08x->memcpy.dev = &adev->dev; |
2059 | pl08x->memcpy.device_alloc_chan_resources = pl08x_alloc_chan_resources; | ||
2060 | pl08x->memcpy.device_free_chan_resources = pl08x_free_chan_resources; | 2054 | pl08x->memcpy.device_free_chan_resources = pl08x_free_chan_resources; |
2061 | pl08x->memcpy.device_prep_dma_memcpy = pl08x_prep_dma_memcpy; | 2055 | pl08x->memcpy.device_prep_dma_memcpy = pl08x_prep_dma_memcpy; |
2062 | pl08x->memcpy.device_prep_dma_interrupt = pl08x_prep_dma_interrupt; | 2056 | pl08x->memcpy.device_prep_dma_interrupt = pl08x_prep_dma_interrupt; |
@@ -2071,7 +2065,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) | |||
2071 | dma_cap_set(DMA_SLAVE, pl08x->slave.cap_mask); | 2065 | dma_cap_set(DMA_SLAVE, pl08x->slave.cap_mask); |
2072 | dma_cap_set(DMA_CYCLIC, pl08x->slave.cap_mask); | 2066 | dma_cap_set(DMA_CYCLIC, pl08x->slave.cap_mask); |
2073 | pl08x->slave.dev = &adev->dev; | 2067 | pl08x->slave.dev = &adev->dev; |
2074 | pl08x->slave.device_alloc_chan_resources = pl08x_alloc_chan_resources; | ||
2075 | pl08x->slave.device_free_chan_resources = pl08x_free_chan_resources; | 2068 | pl08x->slave.device_free_chan_resources = pl08x_free_chan_resources; |
2076 | pl08x->slave.device_prep_dma_interrupt = pl08x_prep_dma_interrupt; | 2069 | pl08x->slave.device_prep_dma_interrupt = pl08x_prep_dma_interrupt; |
2077 | pl08x->slave.device_tx_status = pl08x_dma_tx_status; | 2070 | pl08x->slave.device_tx_status = pl08x_dma_tx_status; |
diff --git a/drivers/dma/dma-jz4740.c b/drivers/dma/dma-jz4740.c index 248a6ee1775b..7497578c9cfc 100644 --- a/drivers/dma/dma-jz4740.c +++ b/drivers/dma/dma-jz4740.c | |||
@@ -492,11 +492,6 @@ static enum dma_status jz4740_dma_tx_status(struct dma_chan *c, | |||
492 | return status; | 492 | return status; |
493 | } | 493 | } |
494 | 494 | ||
495 | static int jz4740_dma_alloc_chan_resources(struct dma_chan *c) | ||
496 | { | ||
497 | return 0; | ||
498 | } | ||
499 | |||
500 | static void jz4740_dma_free_chan_resources(struct dma_chan *c) | 495 | static void jz4740_dma_free_chan_resources(struct dma_chan *c) |
501 | { | 496 | { |
502 | vchan_free_chan_resources(to_virt_chan(c)); | 497 | vchan_free_chan_resources(to_virt_chan(c)); |
@@ -536,7 +531,6 @@ static int jz4740_dma_probe(struct platform_device *pdev) | |||
536 | 531 | ||
537 | dma_cap_set(DMA_SLAVE, dd->cap_mask); | 532 | dma_cap_set(DMA_SLAVE, dd->cap_mask); |
538 | dma_cap_set(DMA_CYCLIC, dd->cap_mask); | 533 | dma_cap_set(DMA_CYCLIC, dd->cap_mask); |
539 | dd->device_alloc_chan_resources = jz4740_dma_alloc_chan_resources; | ||
540 | dd->device_free_chan_resources = jz4740_dma_free_chan_resources; | 534 | dd->device_free_chan_resources = jz4740_dma_free_chan_resources; |
541 | dd->device_tx_status = jz4740_dma_tx_status; | 535 | dd->device_tx_status = jz4740_dma_tx_status; |
542 | dd->device_issue_pending = jz4740_dma_issue_pending; | 536 | dd->device_issue_pending = jz4740_dma_issue_pending; |
diff --git a/drivers/dma/img-mdc-dma.c b/drivers/dma/img-mdc-dma.c index ed045a9ad634..9ca56830cc63 100644 --- a/drivers/dma/img-mdc-dma.c +++ b/drivers/dma/img-mdc-dma.c | |||
@@ -689,11 +689,6 @@ static int mdc_slave_config(struct dma_chan *chan, | |||
689 | return 0; | 689 | return 0; |
690 | } | 690 | } |
691 | 691 | ||
692 | static int mdc_alloc_chan_resources(struct dma_chan *chan) | ||
693 | { | ||
694 | return 0; | ||
695 | } | ||
696 | |||
697 | static void mdc_free_chan_resources(struct dma_chan *chan) | 692 | static void mdc_free_chan_resources(struct dma_chan *chan) |
698 | { | 693 | { |
699 | struct mdc_chan *mchan = to_mdc_chan(chan); | 694 | struct mdc_chan *mchan = to_mdc_chan(chan); |
@@ -910,7 +905,6 @@ static int mdc_dma_probe(struct platform_device *pdev) | |||
910 | mdma->dma_dev.device_prep_slave_sg = mdc_prep_slave_sg; | 905 | mdma->dma_dev.device_prep_slave_sg = mdc_prep_slave_sg; |
911 | mdma->dma_dev.device_prep_dma_cyclic = mdc_prep_dma_cyclic; | 906 | mdma->dma_dev.device_prep_dma_cyclic = mdc_prep_dma_cyclic; |
912 | mdma->dma_dev.device_prep_dma_memcpy = mdc_prep_dma_memcpy; | 907 | mdma->dma_dev.device_prep_dma_memcpy = mdc_prep_dma_memcpy; |
913 | mdma->dma_dev.device_alloc_chan_resources = mdc_alloc_chan_resources; | ||
914 | mdma->dma_dev.device_free_chan_resources = mdc_free_chan_resources; | 908 | mdma->dma_dev.device_free_chan_resources = mdc_free_chan_resources; |
915 | mdma->dma_dev.device_tx_status = mdc_tx_status; | 909 | mdma->dma_dev.device_tx_status = mdc_tx_status; |
916 | mdma->dma_dev.device_issue_pending = mdc_issue_pending; | 910 | mdma->dma_dev.device_issue_pending = mdc_issue_pending; |
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index 3ac9256ce87e..647e362f01fd 100644 --- a/drivers/dma/k3dma.c +++ b/drivers/dma/k3dma.c | |||
@@ -313,11 +313,6 @@ static void k3_dma_tasklet(unsigned long arg) | |||
313 | } | 313 | } |
314 | } | 314 | } |
315 | 315 | ||
316 | static int k3_dma_alloc_chan_resources(struct dma_chan *chan) | ||
317 | { | ||
318 | return 0; | ||
319 | } | ||
320 | |||
321 | static void k3_dma_free_chan_resources(struct dma_chan *chan) | 316 | static void k3_dma_free_chan_resources(struct dma_chan *chan) |
322 | { | 317 | { |
323 | struct k3_dma_chan *c = to_k3_chan(chan); | 318 | struct k3_dma_chan *c = to_k3_chan(chan); |
@@ -728,7 +723,6 @@ static int k3_dma_probe(struct platform_device *op) | |||
728 | dma_cap_set(DMA_SLAVE, d->slave.cap_mask); | 723 | dma_cap_set(DMA_SLAVE, d->slave.cap_mask); |
729 | dma_cap_set(DMA_MEMCPY, d->slave.cap_mask); | 724 | dma_cap_set(DMA_MEMCPY, d->slave.cap_mask); |
730 | d->slave.dev = &op->dev; | 725 | d->slave.dev = &op->dev; |
731 | d->slave.device_alloc_chan_resources = k3_dma_alloc_chan_resources; | ||
732 | d->slave.device_free_chan_resources = k3_dma_free_chan_resources; | 726 | d->slave.device_free_chan_resources = k3_dma_free_chan_resources; |
733 | d->slave.device_tx_status = k3_dma_tx_status; | 727 | d->slave.device_tx_status = k3_dma_tx_status; |
734 | d->slave.device_prep_dma_memcpy = k3_dma_prep_memcpy; | 728 | d->slave.device_prep_dma_memcpy = k3_dma_prep_memcpy; |
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c index 110a0cdcc60a..01dcaf21b988 100644 --- a/drivers/dma/s3c24xx-dma.c +++ b/drivers/dma/s3c24xx-dma.c | |||
@@ -749,11 +749,6 @@ unlock: | |||
749 | return ret; | 749 | return ret; |
750 | } | 750 | } |
751 | 751 | ||
752 | static int s3c24xx_dma_alloc_chan_resources(struct dma_chan *chan) | ||
753 | { | ||
754 | return 0; | ||
755 | } | ||
756 | |||
757 | static void s3c24xx_dma_free_chan_resources(struct dma_chan *chan) | 752 | static void s3c24xx_dma_free_chan_resources(struct dma_chan *chan) |
758 | { | 753 | { |
759 | /* Ensure all queued descriptors are freed */ | 754 | /* Ensure all queued descriptors are freed */ |
@@ -1290,8 +1285,6 @@ static int s3c24xx_dma_probe(struct platform_device *pdev) | |||
1290 | dma_cap_set(DMA_MEMCPY, s3cdma->memcpy.cap_mask); | 1285 | dma_cap_set(DMA_MEMCPY, s3cdma->memcpy.cap_mask); |
1291 | dma_cap_set(DMA_PRIVATE, s3cdma->memcpy.cap_mask); | 1286 | dma_cap_set(DMA_PRIVATE, s3cdma->memcpy.cap_mask); |
1292 | s3cdma->memcpy.dev = &pdev->dev; | 1287 | s3cdma->memcpy.dev = &pdev->dev; |
1293 | s3cdma->memcpy.device_alloc_chan_resources = | ||
1294 | s3c24xx_dma_alloc_chan_resources; | ||
1295 | s3cdma->memcpy.device_free_chan_resources = | 1288 | s3cdma->memcpy.device_free_chan_resources = |
1296 | s3c24xx_dma_free_chan_resources; | 1289 | s3c24xx_dma_free_chan_resources; |
1297 | s3cdma->memcpy.device_prep_dma_memcpy = s3c24xx_dma_prep_memcpy; | 1290 | s3cdma->memcpy.device_prep_dma_memcpy = s3c24xx_dma_prep_memcpy; |
@@ -1305,8 +1298,6 @@ static int s3c24xx_dma_probe(struct platform_device *pdev) | |||
1305 | dma_cap_set(DMA_CYCLIC, s3cdma->slave.cap_mask); | 1298 | dma_cap_set(DMA_CYCLIC, s3cdma->slave.cap_mask); |
1306 | dma_cap_set(DMA_PRIVATE, s3cdma->slave.cap_mask); | 1299 | dma_cap_set(DMA_PRIVATE, s3cdma->slave.cap_mask); |
1307 | s3cdma->slave.dev = &pdev->dev; | 1300 | s3cdma->slave.dev = &pdev->dev; |
1308 | s3cdma->slave.device_alloc_chan_resources = | ||
1309 | s3c24xx_dma_alloc_chan_resources; | ||
1310 | s3cdma->slave.device_free_chan_resources = | 1301 | s3cdma->slave.device_free_chan_resources = |
1311 | s3c24xx_dma_free_chan_resources; | 1302 | s3c24xx_dma_free_chan_resources; |
1312 | s3cdma->slave.device_tx_status = s3c24xx_dma_tx_status; | 1303 | s3cdma->slave.device_tx_status = s3c24xx_dma_tx_status; |
diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c index 5adf5407a8cb..dafe13faa940 100644 --- a/drivers/dma/sa11x0-dma.c +++ b/drivers/dma/sa11x0-dma.c | |||
@@ -389,11 +389,6 @@ static void sa11x0_dma_tasklet(unsigned long arg) | |||
389 | } | 389 | } |
390 | 390 | ||
391 | 391 | ||
392 | static int sa11x0_dma_alloc_chan_resources(struct dma_chan *chan) | ||
393 | { | ||
394 | return 0; | ||
395 | } | ||
396 | |||
397 | static void sa11x0_dma_free_chan_resources(struct dma_chan *chan) | 392 | static void sa11x0_dma_free_chan_resources(struct dma_chan *chan) |
398 | { | 393 | { |
399 | struct sa11x0_dma_chan *c = to_sa11x0_dma_chan(chan); | 394 | struct sa11x0_dma_chan *c = to_sa11x0_dma_chan(chan); |
@@ -835,7 +830,6 @@ static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, | |||
835 | 830 | ||
836 | INIT_LIST_HEAD(&dmadev->channels); | 831 | INIT_LIST_HEAD(&dmadev->channels); |
837 | dmadev->dev = dev; | 832 | dmadev->dev = dev; |
838 | dmadev->device_alloc_chan_resources = sa11x0_dma_alloc_chan_resources; | ||
839 | dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; | 833 | dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; |
840 | dmadev->device_config = sa11x0_dma_device_config; | 834 | dmadev->device_config = sa11x0_dma_device_config; |
841 | dmadev->device_pause = sa11x0_dma_device_pause; | 835 | dmadev->device_pause = sa11x0_dma_device_pause; |
diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index 5358453bdb93..11e536586812 100644 --- a/drivers/dma/sun6i-dma.c +++ b/drivers/dma/sun6i-dma.c | |||
@@ -796,11 +796,6 @@ static void sun6i_dma_issue_pending(struct dma_chan *chan) | |||
796 | spin_unlock_irqrestore(&vchan->vc.lock, flags); | 796 | spin_unlock_irqrestore(&vchan->vc.lock, flags); |
797 | } | 797 | } |
798 | 798 | ||
799 | static int sun6i_dma_alloc_chan_resources(struct dma_chan *chan) | ||
800 | { | ||
801 | return 0; | ||
802 | } | ||
803 | |||
804 | static void sun6i_dma_free_chan_resources(struct dma_chan *chan) | 799 | static void sun6i_dma_free_chan_resources(struct dma_chan *chan) |
805 | { | 800 | { |
806 | struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device); | 801 | struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device); |
@@ -957,7 +952,6 @@ static int sun6i_dma_probe(struct platform_device *pdev) | |||
957 | dma_cap_set(DMA_SLAVE, sdc->slave.cap_mask); | 952 | dma_cap_set(DMA_SLAVE, sdc->slave.cap_mask); |
958 | 953 | ||
959 | INIT_LIST_HEAD(&sdc->slave.channels); | 954 | INIT_LIST_HEAD(&sdc->slave.channels); |
960 | sdc->slave.device_alloc_chan_resources = sun6i_dma_alloc_chan_resources; | ||
961 | sdc->slave.device_free_chan_resources = sun6i_dma_free_chan_resources; | 955 | sdc->slave.device_free_chan_resources = sun6i_dma_free_chan_resources; |
962 | sdc->slave.device_tx_status = sun6i_dma_tx_status; | 956 | sdc->slave.device_tx_status = sun6i_dma_tx_status; |
963 | sdc->slave.device_issue_pending = sun6i_dma_issue_pending; | 957 | sdc->slave.device_issue_pending = sun6i_dma_issue_pending; |