diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-10-16 05:00:57 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-06 01:02:45 -0500 |
commit | 25741ff296f0a1d1fdd3e6f0923e5b4e79627037 (patch) | |
tree | 7ae285a486d1d6561c5a5159d8b2efa21f904e63 | |
parent | 91f7f700146d217e23d088d8a220d59d52861982 (diff) |
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 <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/k3dma.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
722 | d->slave.device_issue_pending = k3_dma_issue_pending; | 722 | d->slave.device_issue_pending = k3_dma_issue_pending; |
723 | d->slave.device_control = k3_dma_control; | 723 | d->slave.device_control = k3_dma_control; |
724 | d->slave.copy_align = DMA_ALIGN; | 724 | d->slave.copy_align = DMA_ALIGN; |
725 | d->slave.chancnt = d->dma_requests; | ||
726 | 725 | ||
727 | /* init virtual channel */ | 726 | /* init virtual channel */ |
728 | d->chans = devm_kzalloc(&op->dev, | 727 | d->chans = devm_kzalloc(&op->dev, |