mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
dmaengine: fsldma: 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>
This commit is contained in:
parent
b2c100e02f
commit
91f7f70014
1 changed files with 0 additions and 1 deletions
|
@ -1337,7 +1337,6 @@ static int fsl_dma_chan_probe(struct fsldma_device *fdev,
|
|||
|
||||
/* Add the channel to DMA device channel list */
|
||||
list_add_tail(&chan->common.device_node, &fdev->common.channels);
|
||||
fdev->common.chancnt++;
|
||||
|
||||
dev_info(fdev->dev, "#%d (%s), irq %d\n", chan->id, compatible,
|
||||
chan->irq != NO_IRQ ? chan->irq : fdev->irq);
|
||||
|
|
Loading…
Reference in a new issue