From: Maxime Ripard Date: Thu, 16 Oct 2014 09:00:57 +0000 (+0200) Subject: dmaengine: k3: Remove chancnt affectations X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=25741ff296f0a1d1fdd3e6f0923e5b4e79627037;p=linux-beck.git 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: Maxime Ripard Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index a1f911aaf220..58219aa649fd 100644 --- a/drivers/dma/k3dma.c +++ b/drivers/dma/k3dma.c @@ -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,