dmaengine: k3: Remove chancnt affectations
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 16 Oct 2014 09:00:57 +0000 (11:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 06:02:45 +0000 (11:32 +0530)
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: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/k3dma.c

index a1f911a..58219aa 100644 (file)
@@ -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_control = k3_dma_control;
        d->slave.copy_align = DMA_ALIGN;
-       d->slave.chancnt = d->dma_requests;
 
        /* init virtual channel */
        d->chans = devm_kzalloc(&op->dev,