aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/k3dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/k3dma.c')
-rw-r--r--drivers/dma/k3dma.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c
index 6f7f43529ccb..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
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);
@@ -654,7 +649,7 @@ static void k3_dma_free_desc(struct virt_dma_desc *vd)
654 kfree(ds); 649 kfree(ds);
655} 650}
656 651
657static struct of_device_id k3_pdma_dt_ids[] = { 652static const struct of_device_id k3_pdma_dt_ids[] = {
658 { .compatible = "hisilicon,k3-dma-1.0", }, 653 { .compatible = "hisilicon,k3-dma-1.0", },
659 {} 654 {}
660}; 655};
@@ -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;