Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c509c495 authored by Vinod Koul's avatar Vinod Koul
Browse files

dmaengine: k3dma: remove device_alloc_chan_resources handler



Now that device_alloc_chan_resources handler in not mandatory, remove dummy
implementations

Acked-by: default avatarZhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent f265958a
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -313,11 +313,6 @@ static void k3_dma_tasklet(unsigned long arg)
	}
	}
}
}


static int k3_dma_alloc_chan_resources(struct dma_chan *chan)
{
	return 0;
}

static void k3_dma_free_chan_resources(struct dma_chan *chan)
static void k3_dma_free_chan_resources(struct dma_chan *chan)
{
{
	struct k3_dma_chan *c = to_k3_chan(chan);
	struct k3_dma_chan *c = to_k3_chan(chan);
@@ -728,7 +723,6 @@ static int k3_dma_probe(struct platform_device *op)
	dma_cap_set(DMA_SLAVE, d->slave.cap_mask);
	dma_cap_set(DMA_SLAVE, d->slave.cap_mask);
	dma_cap_set(DMA_MEMCPY, d->slave.cap_mask);
	dma_cap_set(DMA_MEMCPY, d->slave.cap_mask);
	d->slave.dev = &op->dev;
	d->slave.dev = &op->dev;
	d->slave.device_alloc_chan_resources = k3_dma_alloc_chan_resources;
	d->slave.device_free_chan_resources = k3_dma_free_chan_resources;
	d->slave.device_free_chan_resources = k3_dma_free_chan_resources;
	d->slave.device_tx_status = k3_dma_tx_status;
	d->slave.device_tx_status = k3_dma_tx_status;
	d->slave.device_prep_dma_memcpy = k3_dma_prep_memcpy;
	d->slave.device_prep_dma_memcpy = k3_dma_prep_memcpy;