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

Commit 25741ff2 authored by Maxime Ripard's avatar Maxime Ripard Committed by Vinod Koul
Browse files

dmaengine: k3: Remove chancnt affectations



chanctnt is already filled by dma_async_device_register, which uses the channel
list to know how much channels there is.

Since it's already filled, we can safely remove it from the drivers' probe
function.

Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 91f7f700
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -722,7 +722,6 @@ static int k3_dma_probe(struct platform_device *op)
	d->slave.device_issue_pending = k3_dma_issue_pending;
	d->slave.device_issue_pending = k3_dma_issue_pending;
	d->slave.device_control = k3_dma_control;
	d->slave.device_control = k3_dma_control;
	d->slave.copy_align = DMA_ALIGN;
	d->slave.copy_align = DMA_ALIGN;
	d->slave.chancnt = d->dma_requests;


	/* init virtual channel */
	/* init virtual channel */
	d->chans = devm_kzalloc(&op->dev,
	d->chans = devm_kzalloc(&op->dev,