aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2015-03-16 04:29:48 -0400
committerVinod Koul <vinod.koul@intel.com>2015-03-18 13:15:11 -0400
commitc509c495c0aca237cb7e3a38cb1fa90ff3a0bdfa (patch)
treeba01cc4d437cd87842e5b0b0fa0029962b21e0fa
parentf265958a6b6da2af3ff57d44cd661138b04ce78d (diff)
dmaengine: k3dma: remove device_alloc_chan_resources handler
Now that device_alloc_chan_resources handler in not mandatory, remove dummy implementations Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/k3dma.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c
index 6f7f43529ccb..c535c58ac672 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
316static int k3_dma_alloc_chan_resources(struct dma_chan *chan)
317{
318 return 0;
319}
320
321static void k3_dma_free_chan_resources(struct dma_chan *chan) 316static 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;